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