{{- if .Values.hyperlane.validator.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "agent-common.fullname" . }}-validator labels: {{- include "agent-common.labels" . | nindent 4 }} data: {{- range $index, $config := .Values.hyperlane.validator.configs }} validator-{{ $index }}.env: | {{- include "agent-common.config-env-vars" (dict "config" $config "format" "dot_env") | nindent 4 }} {{- end }} {{- end }}