mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-21 19:07:00 +00:00
rename -k8sversion to -kubernetes-version to stay close to kubeval
This commit is contained in:
parent
d7dae3478d
commit
a83c915a24
3 changed files with 4 additions and 4 deletions
|
|
@ -36,8 +36,8 @@ $ ./bin/kubeconform -h
|
||||||
Usage of ./bin/kubeconform:
|
Usage of ./bin/kubeconform:
|
||||||
-ignore-missing-schemas
|
-ignore-missing-schemas
|
||||||
skip files with missing schemas instead of failing
|
skip files with missing schemas instead of failing
|
||||||
-k8sversion string
|
-kubernetes-sversion string
|
||||||
version of Kubernetes to test against (default "1.18.0")
|
version of Kubernetes to validate against (default "1.18.0")
|
||||||
-n int
|
-n int
|
||||||
number of routines to run in parallel (default 4)
|
number of routines to run in parallel (default 4)
|
||||||
-output string
|
-output string
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "Fail when parsing a config with additional properties and strict set" {
|
@test "Fail when parsing a config with additional properties and strict set" {
|
||||||
run bin/kubeconform -strict -k8sversion 1.16.0 fixtures/extra_property.yaml
|
run bin/kubeconform -strict -kubernetes-version 1.16.0 fixtures/extra_property.yaml
|
||||||
[ "$status" -eq 1 ]
|
[ "$status" -eq 1 ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,7 @@ func realMain() int {
|
||||||
var err error
|
var err error
|
||||||
var files []string
|
var files []string
|
||||||
|
|
||||||
flag.StringVar(&k8sVersion, "k8sversion", "1.18.0", "version of Kubernetes to test against")
|
flag.StringVar(&k8sVersion, "kubernetes-version", "1.18.0", "version of Kubernetes to test against")
|
||||||
flag.Var(&schemaLocationsParam, "schema-location", "override schemas location search path (can be specified multiple times)")
|
flag.Var(&schemaLocationsParam, "schema-location", "override schemas location search path (can be specified multiple times)")
|
||||||
flag.BoolVar(&ignoreMissingSchemas, "ignore-missing-schemas", false, "skip files with missing schemas instead of failing")
|
flag.BoolVar(&ignoreMissingSchemas, "ignore-missing-schemas", false, "skip files with missing schemas instead of failing")
|
||||||
flag.BoolVar(&summary, "summary", false, "print a summary at the end")
|
flag.BoolVar(&summary, "summary", false, "print a summary at the end")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue