helm-charts/charts/library/common/templates/lib/deployment/_valuesToObject.tpl
2023-09-13 11:24:23 +02:00

14 lines
424 B
Smarty

{{/*
Convert Deployment values to an object
*/}}
{{- define "bjw-s.common.lib.deployment.valuesToObject" -}}
{{- $rootContext := .rootContext -}}
{{- $identifier := .id -}}
{{- $objectValues := .values -}}
{{- $strategy := default "Recreate" $objectValues.strategy -}}
{{- $_ := set $objectValues "strategy" $strategy -}}
{{- /* Return the Deployment object */ -}}
{{- $objectValues | toYaml -}}
{{- end -}}