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) {