2023-11-20 20:40:07 +00:00
|
|
|
{
|
|
|
|
"{{ ds "type" }}": [
|
|
|
|
{{- $path := ds "source" }}
|
2024-04-23 18:49:00 +00:00
|
|
|
{{- $filelist := coll.Slice }}
|
|
|
|
{{- range $item := file.ReadDir $path }}
|
|
|
|
{{- if $item | strings.HasPrefix "all-" }}{{ continue }}{{ end }}
|
|
|
|
{{- $filelist = $filelist | coll.Append $item }}
|
|
|
|
{{- end }}
|
|
|
|
{{- $last := sub (len $filelist) 1 }}
|
|
|
|
{{- range $i, $item := $filelist | coll.Sort }}
|
2024-03-26 12:59:05 +00:00
|
|
|
{{- if $item | strings.HasPrefix "all-" }}{{ continue }}{{ end }}
|
2023-11-20 20:40:07 +00:00
|
|
|
{
|
|
|
|
"$ref": "https://gitea.rknet.org/infra/crds-catalog/raw/branch/catalog/{{ $path | path.Base }}/{{ $item }}"
|
2024-04-23 18:49:00 +00:00
|
|
|
}{{ if ne $i $last }},{{ end }}
|
2023-11-20 20:40:07 +00:00
|
|
|
{{- end }}
|
|
|
|
]
|
|
|
|
}
|