Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

feat: update CRD name in the catalog to argoproj #699

Merged
merged 2 commits into from
Jun 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bl/validation/k8sValidator.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func getDefaultSchemaLocations() []string {
// this is a workaround for https://github.com/yannh/kubeconform/issues/100
// notice: order here is important because this fallback doesn't have strict mode enabled (in contrast to "default")
"https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{ .NormalizedKubernetesVersion }}/{{ .ResourceKind }}{{ .KindSuffix }}.json",
getDatreeCRDSchemaByName("argo"),
getDatreeCRDSchemaByName("argoproj"),
}
}

Expand Down
2 changes: 1 addition & 1 deletion bl/validation/k8sValidator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func test_get_all_schema_locations_online(t *testing.T) {
"/my-local-schema-location",
"default",
"https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{ .NormalizedKubernetesVersion }}/{{ .ResourceKind }}{{ .KindSuffix }}.json",
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/argo/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json",
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/argoproj/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json",
}
actual := getAllSchemaLocations([]string{"/my-local-schema-location"}, false)
assert.Equal(t, expectedOutput, actual)
Expand Down