Allow dict being used for statefull set persistence settings (#669)

* Allow dict being used for statefull set persistence settings

* bump common version
This commit is contained in:
Kjeld Schouten-Lebbing
2021-07-06 13:53:15 +02:00
committed by GitHub
parent a0da430c00
commit 69f1ad7ce5
3 changed files with 9 additions and 3 deletions

View File

@@ -18,4 +18,4 @@ maintainers:
name: common
sources:
type: library
version: 6.5.4
version: 6.6.0

View File

@@ -49,8 +49,12 @@ spec:
{{- include "common.controller.pod" . | nindent 6 }}
volumeClaimTemplates:
{{- range $index, $vct := .Values.volumeClaimTemplates }}
{{- $vctname := $index }}
{{- if $vct.name }}
{{- $vctname := $vct.name }}
{{- end }}
- metadata:
name: {{ $vct.name }}
name: {{ $vctname }}
spec:
accessModes:
- {{ required (printf "accessMode is required for vCT %v" $vct.name) $vct.accessMode | quote }}

View File

@@ -442,10 +442,12 @@ persistence:
# -- Used in conjunction with `controller.type: statefulset` to create individual disks for each instance.
volumeClaimTemplates: []
# - name: data
# data:
# mountPath: /data
# accessMode: "ReadWriteOnce"
# size: 1Gi
## Or use a list
# - name: backup
# mountPath: /backup
# subPath: theSubPath