mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-12 07:44:17 +00:00
Add debug information to help understand failures finding schemas (#133)
* Add debug information to help understand failures finding schemas * Add debug information to help understand failures finding schemas
This commit is contained in:
parent
3cb76bc5e6
commit
f68d6ec6ea
9 changed files with 67 additions and 24 deletions
|
|
@ -97,9 +97,10 @@ func realMain() int {
|
|||
fmt.Fprintln(os.Stderr, err)
|
||||
return 1
|
||||
}
|
||||
|
||||
v, err := validator.New(cfg.SchemaLocations, validator.Opts{
|
||||
var v validator.Validator
|
||||
v, err = validator.New(cfg.SchemaLocations, validator.Opts{
|
||||
Cache: cfg.Cache,
|
||||
Debug: cfg.Debug,
|
||||
SkipTLS: cfg.SkipTLS,
|
||||
SkipKinds: cfg.SkipKinds,
|
||||
RejectKinds: cfg.RejectKinds,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue