mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-26 12:52:01 +00:00
Default to non-strict
This commit is contained in:
parent
1f176b8255
commit
c6526d7278
4 changed files with 6 additions and 4 deletions
|
|
@ -19,6 +19,8 @@ Usage of ./bin/kubeconform:
|
||||||
output format - text, json (default "text")
|
output format - text, json (default "text")
|
||||||
-printsummary
|
-printsummary
|
||||||
print a summary at the end
|
print a summary at the end
|
||||||
|
-quiet
|
||||||
|
quiet output - only print invalid files, and errors
|
||||||
-schema value
|
-schema value
|
||||||
file containing an additional Schema (can be specified multiple times)
|
file containing an additional Schema (can be specified multiple times)
|
||||||
-skipKinds string
|
-skipKinds string
|
||||||
|
|
|
||||||
4
main.go
4
main.go
|
|
@ -97,12 +97,12 @@ func realMain() int {
|
||||||
var nWorkers int
|
var nWorkers int
|
||||||
var quiet bool
|
var quiet bool
|
||||||
|
|
||||||
flag.BoolVar(&printSummary, "printsummary", false, "print a summary at the end")
|
flag.StringVar(&k8sVersion, "k8sversion", "1.18.0", "version of Kubernetes to test against")
|
||||||
flag.Var(&files, "file", "file to validate (can be specified multiple times)")
|
flag.Var(&files, "file", "file to validate (can be specified multiple times)")
|
||||||
flag.Var(&dirs, "dir", "directory to validate (can be specified multiple times)")
|
flag.Var(&dirs, "dir", "directory to validate (can be specified multiple times)")
|
||||||
flag.Var(&schemas, "schema", "file containing an additional Schema (can be specified multiple times)")
|
flag.Var(&schemas, "schema", "file containing an additional Schema (can be specified multiple times)")
|
||||||
|
flag.BoolVar(&printSummary, "printsummary", false, "print a summary at the end")
|
||||||
flag.IntVar(&nWorkers, "workers", 4, "number of routines to run in parallel")
|
flag.IntVar(&nWorkers, "workers", 4, "number of routines to run in parallel")
|
||||||
flag.StringVar(&k8sVersion, "k8sversion", "1.18.0", "version of Kubernetes to test against")
|
|
||||||
flag.StringVar(&skipKinds, "skipKinds", "", "comma-separated list of kinds to ignore")
|
flag.StringVar(&skipKinds, "skipKinds", "", "comma-separated list of kinds to ignore")
|
||||||
flag.BoolVar(&strict, "strict", false, "activate strict mode")
|
flag.BoolVar(&strict, "strict", false, "activate strict mode")
|
||||||
flag.StringVar(&outputFormat, "output", "text", "output format - text, json")
|
flag.StringVar(&outputFormat, "output", "text", "output format - text, json")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue