catalog/incubator/noisedash/1.0.5/templates/common.yaml

22 lines
591 B
YAML

{{/* Make sure all variables are set properly */}}
{{- include "tc.common.loader.init" . }}
{{- define "noisedash.configvolume" -}}
enabled: true
mountPath: /var/noisedash/config
type: custom
readOnly: true
volumeSpec:
configMap:
name: {{ include "tc.common.names.fullname" . }}-noisedash-config
items:
- key: default.json
path: default.json
{{- end -}}
{{- include "noisedash.config" . -}}
{{- $_ := set .Values.persistence "noisedash-config" (include "noisedash.configvolume" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}