xray-docs/helm/charts/helm-library/templates/components/_crd.tpl
Nikolai Rodionov 65b90453dc
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add the helm chart
2025-01-18 11:59:15 +01:00

18 lines
524 B
Smarty

{{/*
* CRDs should always be managed as a separate chart
* They must be written to the ./crd folder and then
* they will be read by the .Files helm feature
*/}}
{{- define "lib.component.crd" -}} {{- /* define[0] */ -}}
{{-
$metadata := include "lib.metadata"
(dict "ctx" $ "annotations" .Values.workload.annotations)
}}
{{ $currentScope := .}}
{{ range $path, $_ := .Files.Glob "**.yaml" }}
{{- with $currentScope}}
{{ .Files.Get $path }}
{{- end }}
{{ end }}
{{- end -}} {{- /* define[0] */ -}}