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

18 lines
540 B
YAML

{{- if .Values.nodeAgent.config.override }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-node-agent
labels:
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
{{ include "stackstate-k8s-agent.global.extraLabels" . | indent 4 }}
app.kubernetes.io/component: node-agent
annotations:
{{ include "stackstate-k8s-agent.global.extraAnnotations" . | indent 4 }}
data:
{{- range .Values.nodeAgent.config.override }}
{{ .path | replace "/" "_"}}_{{ .name }}: |
{{ .data | indent 4 -}}
{{- end -}}
{{- end -}}