mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-13 16:14:17 +00:00
linting
This commit is contained in:
parent
0bbee68c49
commit
031f83cbde
3 changed files with 8 additions and 5 deletions
|
|
@ -157,9 +157,9 @@ func (val *v) ValidateResource(res resource.Resource) Result {
|
|||
if schema == nil {
|
||||
if val.opts.IgnoreMissingSchemas {
|
||||
return Result{Resource: res, Err: nil, Status: Skipped}
|
||||
} else {
|
||||
return Result{Resource: res, Err: fmt.Errorf("could not find schema for %s", sig.Kind), Status: Error}
|
||||
}
|
||||
|
||||
return Result{Resource: res, Err: fmt.Errorf("could not find schema for %s", sig.Kind), Status: Error}
|
||||
}
|
||||
|
||||
resourceLoader := gojsonschema.NewGoLoader(r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue