Skip to content

Commit 82fe0aa

Browse files
committed
feat(actions/linter): add Hoverkraft CRDs schema for kubeconform
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 6e43da5 commit 82fe0aa

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/linter.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,17 @@ jobs:
128128
},
129129
};
130130
131+
const kubeconformSchemaLocations = [
132+
"default",
133+
"https://raw.githubusercontent.com/hoverkraft-tech/crds-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json",
134+
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json",
135+
];
136+
131137
const defaultLinterVariables = {
132138
KUBERNETES_KUBECONFORM_OPTIONS:
133-
"-schema-location default -schema-location https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json",
139+
kubeconformSchemaLocations
140+
.map((schemaLocation) => `-schema-location ${schemaLocation}`)
141+
.join(" "),
134142
};
135143
136144
function parseEnvironmentLines(serializedEnvironment) {

0 commit comments

Comments
 (0)