mirror of
https://ghproxy.com/https://github.com/truecharts/charts.git
synced 2026-07-27 08:10:23 +08:00
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:
committed by
GitHub
parent
a0da430c00
commit
69f1ad7ce5
@@ -18,4 +18,4 @@ maintainers:
|
||||
name: common
|
||||
sources:
|
||||
type: library
|
||||
version: 6.5.4
|
||||
version: 6.6.0
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user