From 0422f505fa2e2804985d76274e80c94f1beec394 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Fri, 19 Jun 2026 17:54:18 +0200 Subject: [PATCH] feat(actions/linter): add Hoverkraft CRDs schema for kubeconform Signed-off-by: Emilien Escalle --- .github/workflows/linter.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 49317c3..eea6ef9 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -128,9 +128,17 @@ jobs: }, }; + const kubeconformSchemaLocations = [ + "default", + "https://raw.githubusercontent.com/hoverkraft-tech/crds-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json", + "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json", + ]; + const defaultLinterVariables = { KUBERNETES_KUBECONFORM_OPTIONS: - "-schema-location default -schema-location https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json", + kubeconformSchemaLocations + .map((schemaLocation) => `-schema-location ${schemaLocation}`) + .join(" "), }; function parseEnvironmentLines(serializedEnvironment) {