Skip to content

cert-manager kubectl plugin does not support the --context flag #6530

@taxilian

Description

@taxilian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.triage/needs-informationIndicates an issue needs more information in order to work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions