Robert Kaussow
f9dfe67eeb
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #54 Co-authored-by: Robert Kaussow <mail@thegeeklab.de> Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
14 lines
349 B
Cheetah
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 }}
|
|
]
|
|
}
|