scale-catalog/incubator/wisemapping/0.2.18/templates/common.yaml
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

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" . }}