mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
11 lines
412 B
Smarty
11 lines
412 B
Smarty
{{/*
|
|
Merge the local chart values and the common chart defaults
|
|
*/}}
|
|
{{- define "bjw-s.common.values.init" -}}
|
|
{{- if .Values.common -}}
|
|
{{- $defaultValues := deepCopy .Values.common -}}
|
|
{{- $userValues := deepCopy (omit .Values "common") -}}
|
|
{{- $mergedValues := mustMergeOverwrite $defaultValues $userValues -}}
|
|
{{- $_ := set . "Values" (deepCopy $mergedValues) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|