From d324c0a1c37cd5918766218c1c36a2b71599ef03 Mon Sep 17 00:00:00 2001 From: Domonkos Cinke Date: Mon, 16 May 2022 14:39:53 +0200 Subject: [PATCH] Add PVC annotations to StatefulSet PVC templates (#14915) --- helm/minio/templates/statefulset.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/helm/minio/templates/statefulset.yaml b/helm/minio/templates/statefulset.yaml index 37f8e794e..b4160f0c1 100644 --- a/helm/minio/templates/statefulset.yaml +++ b/helm/minio/templates/statefulset.yaml @@ -184,6 +184,10 @@ spec: {{- range $diskId := until $drivesPerNode}} - metadata: name: export-{{ $diskId }} + {{- if $.Values.persistence.annotations }} + annotations: +{{ toYaml $.Values.persistence.annotations | trimSuffix "\n" | indent 10 }} + {{- end }} spec: accessModes: [ {{ $accessMode | quote }} ] {{- if $storageClass }} @@ -196,6 +200,10 @@ spec: {{- else }} - metadata: name: export + {{- if $.Values.persistence.annotations }} + annotations: +{{ toYaml $.Values.persistence.annotations | trimSuffix "\n" | indent 10 }} + {{- end }} spec: accessModes: [ {{ $accessMode | quote }} ] {{- if $storageClass }}