Skip to content

Commit

Permalink
Better handling of labels and annotations in the pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed Nov 14, 2024
1 parent 017c1dd commit d23000f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions chart/webdav/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ kind: PersistentVolumeClaim
metadata:
name: {{ include "nginxwebdav.fullname" . }}-{{ .Values.persistence.name }}
annotations:
{{- toYaml .Values.persistence.annotations | nindent 4 }}
{{- with .Values.persistence.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "nginxwebdav" . | nindent 4 }}
{{- .Values.persistence.labels | nindent 4 }}
{{- with .Values.persistence.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
accessModes:
- ReadWriteOnce
Expand Down

0 comments on commit d23000f

Please sign in to comment.