rancher-partner-charts/charts/stackstate/stackstate-k8s-agent/1.0.67/templates/checks-agent-configmap.yaml

15 lines
422 B
YAML

{{- if and .Values.checksAgent.enabled .Values.checksAgent.config.override }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-checks-agent
labels:
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
app.kubernetes.io/component: checks-agent
data:
{{- range .Values.checksAgent.config.override }}
{{ .path | replace "/" "_"}}_{{ .name }}: |
{{ .data | indent 4 -}}
{{- end -}}
{{- end -}}