2022-05-02 15:23:29 +00:00
|
|
|
{{- 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" . }}
|