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