mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
* fix(ports): Only render ports when there are ports * fix(probes): Only render probes when there are probes * feat(sidecars): Rename additionalContainers to sidecars * chore(serviceMonitor): Add labels unittest
12 lines
477 B
Smarty
12 lines
477 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") -}}
|
|
{{- $_ := set $defaultValues "additionalContainers" dict -}}
|
|
{{- $mergedValues := mustMergeOverwrite $defaultValues $userValues -}}
|
|
{{- $_ := set . "Values" (deepCopy $mergedValues) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|