From 71b669d7e862b06a11eff229cb4fee563d9a294e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 26 Mar 2024 13:59:05 +0100 Subject: [PATCH] fix: dont embed all schemas in themselves --- templates/all.json.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/all.json.tmpl b/templates/all.json.tmpl index 4e87fef..5829359 100644 --- a/templates/all.json.tmpl +++ b/templates/all.json.tmpl @@ -4,6 +4,7 @@ {{- $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 }}"