{{- $cfg := fromYaml (.Files.AsConfig) }} apiVersion: v1 kind: ConfigMap metadata: name: onelab-revproxy labels: {{- include "onelab.labels" . | nindent 4 }} annotations: argocd.argoproj.io/sync-wave: {{ .Values.syncWaves.apps | quote }} data: nginx.conf: | {{ tpl (index $cfg "nginx.conf.tpl") . | nindent 4 }} error-404.html: | {{ index $cfg "error-404.html" | nindent 4 }}