mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-20 18:49:53 +00:00
Default to non-strict
This commit is contained in:
parent
1f176b8255
commit
c6526d7278
4 changed files with 6 additions and 4 deletions
|
|
@ -35,7 +35,7 @@ func (o *TextOutput) Write(filename string, err error, skipped bool) {
|
|||
}
|
||||
o.nValid++
|
||||
case s == INVALID:
|
||||
fmt.Printf("%s - invalid resource: %s\n",filename, err)
|
||||
fmt.Printf("%s - invalid resource: %s\n", filename, err)
|
||||
o.nInvalid++
|
||||
case s == ERROR:
|
||||
fmt.Printf("%s - failed validating resource: %s\n", filename, err)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ func Validate(rawResource []byte, schema *gojsonschema.Schema) error {
|
|||
if msg != "" {
|
||||
msg += " - "
|
||||
}
|
||||
msg += errMsg.Description()
|
||||
msg += errMsg.Description()
|
||||
}
|
||||
return InvalidResourceError{err: msg}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue