TrueChartsCatalogClone/incubator/wisemapping/0.2.17/templates/common.yaml

21 lines
652 B
YAML

{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{/* Render configmap for wisemapping */}}
{{- $config := include "wisemapping.configmap" . | fromYaml -}}
{{- if $config -}}
{{- $_ := set .Values.configmap "wisemapping-config" $config -}}
{{- end -}}
{{- if not .Values.wisemappingConfig -}}
{{- $_ := set .Values.persistence.config "enabled" true -}}
{{- end -}}
{{- $vol := include "wisemapping.configVolume" . | fromYaml -}}
{{- if $vol -}}
{{- $_ := set .Values.persistence "wisemapping-config" $vol -}}
{{- end -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}