rename -k8sversion to -kubernetes-version to stay close to kubeval

This commit is contained in:
Yann Hamon 2020-10-18 14:46:54 +02:00
parent d7dae3478d
commit a83c915a24
3 changed files with 4 additions and 4 deletions

View file

@ -36,8 +36,8 @@ $ ./bin/kubeconform -h
Usage of ./bin/kubeconform:
-ignore-missing-schemas
skip files with missing schemas instead of failing
-k8sversion string
version of Kubernetes to test against (default "1.18.0")
-kubernetes-sversion string
version of Kubernetes to validate against (default "1.18.0")
-n int
number of routines to run in parallel (default 4)
-output string

View file

@ -71,7 +71,7 @@
}
@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 ]
}

View file

@ -223,7 +223,7 @@ func realMain() int {
var err error
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.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")