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

Commit

Permalink
feat: update CRD name in the catalog to argoproj (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyar Zilberman authored Jun 30, 2022
1 parent 662747b commit d7d1da6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit d7d1da6

Please sign in to comment.