apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ .Chart.Name }}-manifest
  namespace: {{ .Release.Namespace }}
data:
  crd-manifest.yaml: |
    {{- $currentScope := . -}}
    {{- $crds := (.Files.Glob  "crd-manifest/**.yaml") -}}
    {{- range $path, $_ :=  $crds -}}
    {{- with $currentScope -}}
    {{ .Files.Get $path | nindent 4 }}
    ---
    {{- end -}}{{- end -}}