apiVersion: v1
kind: Namespace
metadata:
  name: dataplane-account
---
{{- $dir := printf "configmap/account/%s_%s_%s/*.yaml" .Values.cloudProvider .Values.env .Values.region }}
{{- $filecount := 0 }}
{{- range $path, $_ := .Files.Glob $dir }}
---
# from account file: {{ $path }}
{{ $.Files.Get $path }}
{{- $filecount = add1 $filecount  }}
{{- end }}
{{- if eq $filecount 0 }}
{{- fail (printf "account file parttern (%s) is not valid or file not found" $dir) }}
{{- end }}