-
Notifications
You must be signed in to change notification settings - Fork 2.4k
cert-manager kubectl plugin does not support the --context flag #6530
Description
Is your feature request related to a problem? Please describe.
I manage 4 different kubernetes clusters, each of which uses cert-manager. For all other kubectl plugins that I use I can do e.g. kubectl --context cluster1 -n cert-manager get pods; with a plugin the --context has to be after the plugin, but kubectl cert-manager --context cluster1 does not work as it is not supported. I can change the default context and make it work, but that is not always convenient.
Describe the solution you'd like
I would like the cert-manager plugin to support the --context flag to select which context inside the kubeconfig to use
Describe alternatives you've considered
The only other way to use this that I am aware of is to do:
kubectl config use-context cluster3
kubectl cert-manager ....
kubectl config use-context <back to what it was before>
Particularly when I'm doing a lot of actions that is really annoying to deal with every time.
Thanks!
/kind feature