Files
library-charts/library/common/templates/lib/values/_values.tpl
Kjeld Schouten-Lebbing 7c44ee5813 move around
2023-01-21 12:16:56 +01:00

11 lines
487 B
Smarty

{{/* Merge the local chart values and the common chart defaults */}}
{{/* The .common part comes from the name of this library */}}
{{- define "ix.v1.common.values.init" -}}
{{- if .Values.common -}}
{{- $defaultValues := mustDeepCopy .Values.common -}}
{{- $userValues := mustDeepCopy (omit .Values "common") -}}
{{- $mergedValues := mustMergeOverwrite $defaultValues $userValues -}}
{{- $_ := set . "Values" (mustDeepCopy $mergedValues) -}}
{{- end -}}
{{- end -}}