mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-06 07:06:25 -03:00
11 lines
487 B
Smarty
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 -}}
|