k8s/helm-charts/dashy/charts/common/templates/values/_init.tpl
root 1eaf295724
Some checks failed
continuous-integration/drone/push Build is failing
new way of doin
2023-11-16 19:42:02 +10:00

15 lines
539 B
Smarty

{{/* Merge chart values and the common chart defaults */}}
{{/* The ".common" is the name of the library */}}
{{/* Call this template:
{{ include "tc.v1.common.values.init" $ }}
*/}}
{{- define "tc.v1.common.values.init" -}}
{{- if .Values.common -}}
{{- $commonValues := mustDeepCopy .Values.common -}}
{{- $chartValues := mustDeepCopy (omit .Values "common") -}}
{{- $mergedValues := mustMergeOverwrite $commonValues $chartValues -}}
{{- $_ := set . "Values" (mustDeepCopy $mergedValues) -}}
{{- end -}}
{{- end -}}