crds-catalog/templates/all.json.tmpl

15 lines
419 B
Cheetah
Raw Normal View History

{
"{{ 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 }}
]
}