mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
13 lines
360 B
Smarty
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 -}}
|