crds-catalog/templates/all.json.tmpl
Robert Kaussow 71b669d7e8
All checks were successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
fix: dont embed all schemas in themselves
2024-03-26 13:59:05 +01:00

15 lines
419 B
Cheetah

{
"{{ ds "type" }}": [
{{- $path := ds "source" }}
{{- $filelist := file.ReadDir $path }}
{{- $length := len $filelist}}
{{- range $i, $item := $filelist }}
{{- if $item | strings.HasPrefix "all-" }}{{ continue }}{{ end }}
{{- if $i }},{{ end }}
{
"$ref": "https://gitea.rknet.org/infra/crds-catalog/raw/branch/catalog/{{ $path | path.Base }}/{{ $item }}"
}
{{- end }}
]
}