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:
@@ -18,4 +18,4 @@ maintainers:
|
|||||||
name: common
|
name: common
|
||||||
sources:
|
sources:
|
||||||
type: library
|
type: library
|
||||||
version: 6.5.4
|
version: 6.6.0
|
||||||
|
|||||||
@@ -49,8 +49,12 @@ spec:
|
|||||||
{{- include "common.controller.pod" . | nindent 6 }}
|
{{- include "common.controller.pod" . | nindent 6 }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
{{- range $index, $vct := .Values.volumeClaimTemplates }}
|
{{- range $index, $vct := .Values.volumeClaimTemplates }}
|
||||||
|
{{- $vctname := $index }}
|
||||||
|
{{- if $vct.name }}
|
||||||
|
{{- $vctname := $vct.name }}
|
||||||
|
{{- end }}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: {{ $vct.name }}
|
name: {{ $vctname }}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- {{ required (printf "accessMode is required for vCT %v" $vct.name) $vct.accessMode | quote }}
|
- {{ required (printf "accessMode is required for vCT %v" $vct.name) $vct.accessMode | quote }}
|
||||||
|
|||||||
@@ -442,10 +442,12 @@ persistence:
|
|||||||
|
|
||||||
# -- Used in conjunction with `controller.type: statefulset` to create individual disks for each instance.
|
# -- Used in conjunction with `controller.type: statefulset` to create individual disks for each instance.
|
||||||
volumeClaimTemplates: []
|
volumeClaimTemplates: []
|
||||||
# - name: data
|
# data:
|
||||||
# mountPath: /data
|
# mountPath: /data
|
||||||
# accessMode: "ReadWriteOnce"
|
# accessMode: "ReadWriteOnce"
|
||||||
# size: 1Gi
|
# size: 1Gi
|
||||||
|
|
||||||
|
## Or use a list
|
||||||
# - name: backup
|
# - name: backup
|
||||||
# mountPath: /backup
|
# mountPath: /backup
|
||||||
# subPath: theSubPath
|
# subPath: theSubPath
|
||||||
|
|||||||
Reference in New Issue
Block a user