diff --git a/charts/trek/templates/pvc.yaml b/charts/trek/templates/pvc.yaml index e1cd5f5c..b3a06906 100644 --- a/charts/trek/templates/pvc.yaml +++ b/charts/trek/templates/pvc.yaml @@ -5,6 +5,10 @@ metadata: name: {{ include "trek.fullname" . }}-data labels: app: {{ include "trek.name" . }} + {{- with .Values.persistence.data.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: accessModes: - ReadWriteOnce @@ -21,6 +25,10 @@ metadata: name: {{ include "trek.fullname" . }}-uploads labels: app: {{ include "trek.name" . }} + {{- with .Values.persistence.uploads.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: accessModes: - ReadWriteOnce diff --git a/charts/trek/values.yaml b/charts/trek/values.yaml index 5ee53a46..3143899f 100644 --- a/charts/trek/values.yaml +++ b/charts/trek/values.yaml @@ -100,9 +100,11 @@ persistence: size: 1Gi # Leave empty to use the cluster's default StorageClass; set to bind a specific class. storageClassName: "" + annotations: {} uploads: size: 1Gi storageClassName: "" + annotations: {} resources: requests: