crds-catalog/templates/all.json.tmpl
Robert Kaussow f9dfe67eeb
All checks were successful
continuous-integration/drone/push Build is passing
feat: generate multi-schema files for each API resource (#54)
Reviewed-on: #54
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
2023-11-20 21:40:07 +01:00

14 lines
349 B
Cheetah

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