scale-catalog/incubator/wisemapping/1.0.4/templates/common.yaml

21 lines
652 B
YAML
Raw Normal View History

2024-07-13 07:59:30 +00:00
{{/* 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" . }}