From 7bd142bcb25f6a306049d4958e4ac72e6279e7dc Mon Sep 17 00:00:00 2001 From: Pietro Terrizzi Date: Wed, 15 Feb 2023 12:28:23 +0100 Subject: [PATCH] feat(helm): added customAnnotations to PVC --- charts/kamaji/templates/etcd_sts.yaml | 4 ++++ charts/kamaji/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/charts/kamaji/templates/etcd_sts.yaml b/charts/kamaji/templates/etcd_sts.yaml index 42bfbedb..b3863ec5 100644 --- a/charts/kamaji/templates/etcd_sts.yaml +++ b/charts/kamaji/templates/etcd_sts.yaml @@ -81,6 +81,10 @@ spec: volumeClaimTemplates: - metadata: name: data + {{- with .Values.etcd.persistence.customAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: storageClassName: {{ .Values.etcd.persistence.storageClassName }} accessModes: diff --git a/charts/kamaji/values.yaml b/charts/kamaji/values.yaml index 46a1876e..e50b9ee2 100644 --- a/charts/kamaji/values.yaml +++ b/charts/kamaji/values.yaml @@ -57,6 +57,9 @@ etcd: storageClass: "" accessModes: - ReadWriteOnce + # -- The custom annotations to add to the PVC + customAnnotations: {} + # volumeType: local overrides: caSecret: