From d3ac9c0704552628674c9d0bdd6e112590dd0ca8 Mon Sep 17 00:00:00 2001 From: wkbrd <30599409+wkbrd@users.noreply.github.com> Date: Fri, 28 Jun 2024 09:42:07 -0400 Subject: [PATCH] Allow for setting annotations on persistentvolumeclaim via persistence.annotations. This is optional and has no change in behavior if this new value is unset. --- templates/pvc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/pvc.yaml b/templates/pvc.yaml index dea0539..b9f8f1b 100644 --- a/templates/pvc.yaml +++ b/templates/pvc.yaml @@ -10,6 +10,12 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" + {{- if (.Values.persistence).annotations }} + {{- with .Values.persistence.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} + {{- end }} spec: accessModes: - {{ .Values.persistence.accessMode | quote }}