diff --git a/templates/pvc.yaml b/templates/pvc.yaml index dea05397..b9f8f1b3 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 }}