kubernetes-sigs/kubectl-validate

--context is not a valid CLI option

devantler opened this issue · 0 comments

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.