mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
14 lines
432 B
Smarty
14 lines
432 B
Smarty
{{/*
|
|
Convert StatefulSet values to an object
|
|
*/}}
|
|
{{- define "bjw-s.common.lib.statefulset.valuesToObject" -}}
|
|
{{- $rootContext := .rootContext -}}
|
|
{{- $identifier := .id -}}
|
|
{{- $objectValues := .values -}}
|
|
|
|
{{- $strategy := default "RollingUpdate" $objectValues.strategy -}}
|
|
{{- $_ := set $objectValues "strategy" $strategy -}}
|
|
|
|
{{- /* Return the StatefulSet object */ -}}
|
|
{{- $objectValues | toYaml -}}
|
|
{{- end -}}
|