kubernetes-sigs / kubectl-validate

Apache License 2.0
161 stars 40 forks source link

--context is not a valid CLI option #98

Closed devantler closed 8 months ago

devantler commented 8 months ago

What happened?

The docs say that the user can use --context to specify a kube context to use when validating. This is not correct. The supported option is called --kube-context.

What did you expect to happen?

That I could follow the docs without issues.

How can we reproduce it (as minimally and precisely as possible)?

kubectl validate <path> --context <kube-context>

It won't work.

Anything else we need to know?

I personally prefer the option should be called --context by default. IMO this is very common. If not --context could be added as an alias?

Kubernetes version

Not relevant.