Helm: Add apiVersion and kind to the StatefulSets volumeClaimTemplates (#18770)

This commit is contained in:
Kevin Huber 2024-01-24 08:28:49 +01:00 committed by GitHub
parent 2c38e44e48
commit 0f16e19239
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -221,7 +221,9 @@ spec:
volumeClaimTemplates:
{{- if gt $drivesPerNode 1 }}
{{- range $diskId := until $drivesPerNode}}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: export-{{ $diskId }}
{{- if $.Values.persistence.annotations }}
annotations: {{- toYaml $.Values.persistence.annotations | nindent 10 }}
@ -236,7 +238,9 @@ spec:
storage: {{ $psize }}
{{- end }}
{{- else }}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: export
{{- if $.Values.persistence.annotations }}
annotations: {{- toYaml $.Values.persistence.annotations | nindent 10 }}