TrueChartsClone/charts/stable/netdata/templates/common.yaml

21 lines
587 B
YAML
Raw Normal View History

{{- include "common.setup" . }}
{{/* Append the hardcoded settings */}}
{{- define "netdata.harcodedValues" -}}
persistence:
netdata-configs:
enabled: "true"
mountPath: "/etc/netdata/truecharts-defaults/.netdata.conf"
subPath: "netdata-conf"
type: "custom"
volumeSpec:
configMap:
name: {{ printf "%v-configs" (include "common.names.fullname" .) }}
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "netdata.harcodedValues" . | fromYaml) -}}
{{- include "netdata.configmap" . }}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}