template/deployments/kustomize/base/configmap.yaml (12 lines of code) (raw):

apiVersion: v1 kind: ConfigMap metadata: name: {{ .Config.GetVariableValue "APPNAME" | printf "%s-config" }} namespace: {{ .Config.GetVariableValue "NAMESPACE" }} labels: app.kubernetes.io/name: {{ .Config.GetVariableValue "APPNAME" }} kubernetes.azure.com/generator: {{ .Config.GetVariableValue "GENERATORLABEL" }} data: {{- range $key, $value := .Config.GetVariableValue "ENVVARS" }} {{ $key }}: {{ $value }} {{- end }}