Add PVC annotations to StatefulSet PVC templates (#14915)

This commit is contained in:
Domonkos Cinke 2022-05-16 14:39:53 +02:00 committed by GitHub
parent 03f8b25b50
commit d324c0a1c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -184,6 +184,10 @@ spec:
{{- range $diskId := until $drivesPerNode}} {{- range $diskId := until $drivesPerNode}}
- metadata: - metadata:
name: export-{{ $diskId }} name: export-{{ $diskId }}
{{- if $.Values.persistence.annotations }}
annotations:
{{ toYaml $.Values.persistence.annotations | trimSuffix "\n" | indent 10 }}
{{- end }}
spec: spec:
accessModes: [ {{ $accessMode | quote }} ] accessModes: [ {{ $accessMode | quote }} ]
{{- if $storageClass }} {{- if $storageClass }}
@ -196,6 +200,10 @@ spec:
{{- else }} {{- else }}
- metadata: - metadata:
name: export name: export
{{- if $.Values.persistence.annotations }}
annotations:
{{ toYaml $.Values.persistence.annotations | trimSuffix "\n" | indent 10 }}
{{- end }}
spec: spec:
accessModes: [ {{ $accessMode | quote }} ] accessModes: [ {{ $accessMode | quote }} ]
{{- if $storageClass }} {{- if $storageClass }}