diff --git a/Readme.md b/Readme.md index 16a526f..dca4eb6 100644 --- a/Readme.md +++ b/Readme.md @@ -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 diff --git a/acceptance.bats b/acceptance.bats index be4ff61..d8a8b0d 100755 --- a/acceptance.bats +++ b/acceptance.bats @@ -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 ] } diff --git a/cmd/kubeconform/main.go b/cmd/kubeconform/main.go index bee9647..30650a5 100644 --- a/cmd/kubeconform/main.go +++ b/cmd/kubeconform/main.go @@ -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")