From d7d1da6ff49a8d22a43a7fe3cae7ebfeb91fbe64 Mon Sep 17 00:00:00 2001 From: Eyar Zilberman Date: Thu, 30 Jun 2022 16:58:27 +0300 Subject: [PATCH] feat: update CRD name in the catalog to argoproj (#699) --- bl/validation/k8sValidator.go | 2 +- bl/validation/k8sValidator_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bl/validation/k8sValidator.go b/bl/validation/k8sValidator.go index 601373ff91..09da469e1c 100644 --- a/bl/validation/k8sValidator.go +++ b/bl/validation/k8sValidator.go @@ -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"), } } diff --git a/bl/validation/k8sValidator_test.go b/bl/validation/k8sValidator_test.go index 167bb3ad2a..4133176371 100644 --- a/bl/validation/k8sValidator_test.go +++ b/bl/validation/k8sValidator_test.go @@ -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)