16 lines
513 B
YAML
16 lines
513 B
YAML
|
{{- define "lib.crds" -}}
|
||
|
{{- range $crd := .Values.crds }}
|
||
|
{{ $manifest := $.Files.Get (printf "files/%s.yaml" $crd.file) | fromYaml }}
|
||
|
---
|
||
|
apiVersion: apiextensions.k8s.io/v1
|
||
|
kind: CustomResourceDefinition
|
||
|
{{- include "lib.metadata" (dict "Context" $ "customName" $manifest.metadata.name )}}
|
||
|
spec:
|
||
|
group: {{ $manifest.spec.group }}
|
||
|
names:
|
||
|
{{ $manifest.spec.names | toYaml | indent 4 }}
|
||
|
scope: {{ $manifest.spec.scope }}
|
||
|
versions:
|
||
|
{{ $manifest.spec.versions | toYaml | indent 4 }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|