softplayer-helm-lib/charts/crds/templates/_crds.yaml

16 lines
513 B
YAML
Raw Normal View History

2024-05-19 16:56:41 +00:00
{{- 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 }}