_init.tpl 539 B

1234567891011121314
  1. {{/* Merge chart values and the common chart defaults */}}
  2. {{/* The ".common" is the name of the library */}}
  3. {{/* Call this template:
  4. {{ include "ix.v1.common.values.init" $ }}
  5. */}}
  6. {{- define "ix.v1.common.values.init" -}}
  7. {{- if .Values.common -}}
  8. {{- $commonValues := mustDeepCopy .Values.common -}}
  9. {{- $chartValues := mustDeepCopy (omit .Values "common") -}}
  10. {{- $mergedValues := mustMergeOverwrite $commonValues $chartValues -}}
  11. {{- $_ := set . "Values" (mustDeepCopy $mergedValues) -}}
  12. {{- end -}}
  13. {{- end -}}