From 74f29f742ffde480ac306879ee1d6b6eca756252 Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Sun, 18 Oct 2020 14:34:47 +0200 Subject: [PATCH] fix logic --- cmd/kubeconform/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeconform/main.go b/cmd/kubeconform/main.go index f22240e..bee9647 100644 --- a/cmd/kubeconform/main.go +++ b/cmd/kubeconform/main.go @@ -251,7 +251,7 @@ func realMain() int { registries := []registry.Registry{} for _, schemaLocation := range schemaLocationsParam { - if strings.HasSuffix(schemaLocation, "json") { // If we dont specify a full templated path, we assume the paths of kubernetesjsonschema.dev + if !strings.HasSuffix(schemaLocation, "json") { // If we dont specify a full templated path, we assume the paths of kubernetesjsonschema.dev schemaLocation += "/{{ .NormalizedVersion }}-standalone{{ .StrictSuffix }}/{{ .ResourceKind }}{{ .KindSuffix }}.json" }