Skip to content

Commit

Permalink
Allow set volumeName to pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
Elbandi committed Jan 3, 2025
1 parent c935295 commit 5864077
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/portainer/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
{{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass | quote }}
{{ end }}
{{- if .Values.persistence.volumeName }}
volumeName: {{ .Values.persistence.volumeName | quote }}
{{- end }}
{{- if .Values.persistence.selector }}
selector:
{{ toYaml .Values.persistence.selector | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/portainer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ persistence:
size: "10Gi"
annotations: {}
storageClass:
# volumeName: ""
existingClaim:

0 comments on commit 5864077

Please sign in to comment.