From b4547ce367f536be17b5b0e3f3c3a7098378b6bd Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Mon, 1 Jun 2020 05:19:54 +0200 Subject: [PATCH] Revert "skip resources that have no Kind defined" This reverts commit 8c234175611a48d2a7472f5e6bf7ce6ca5c837a7. --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 22f03e9..91ac27d 100644 --- a/main.go +++ b/main.go @@ -81,6 +81,10 @@ func validateFile(r io.Reader, regs []registry.Registry, k8sVersion string, c *c continue } + if sig.Kind == "" { + continue // We skip resoures that don't have a Kind defined + } + if skip(sig) { validationResults = append(validationResults, validationResult{kind: sig.Kind, version: sig.Version, err: nil, skipped: true}) continue @@ -148,8 +152,6 @@ func skipKindsMap(skipKindsCSV string) map[string]bool { for _, kind := range splitKinds { skipKinds[kind] = true } - skipKinds[""] = true // Always skip resources that have no Kind defined - return skipKinds }