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 }}