22 lines
600 B
YAML
22 lines
600 B
YAML
{{/* Make sure all variables are set properly */}}
|
|
{{- include "tc.v1.common.loader.init" . }}
|
|
|
|
{{- define "noisedash.configvolume" -}}
|
|
enabled: true
|
|
mountPath: /var/noisedash/config
|
|
type: custom
|
|
readOnly: true
|
|
volumeSpec:
|
|
configMap:
|
|
name: {{ include "tc.v1.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.v1.common.loader.apply" . }}
|