mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
Revert "skip resources that have no Kind defined"
This reverts commit 8c23417561.
This commit is contained in:
parent
8c23417561
commit
b4547ce367
1 changed files with 4 additions and 2 deletions
6
main.go
6
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue