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

13 lines
360 B
Smarty

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