danielfoehrKn / kubeswitch

The kubectx for operators.
https://danielfoehrkn.medium.com/the-case-of-kubeswitch-aff4b6a04ae7
Apache License 2.0
832 stars 80 forks source link

Suggestion: create a krew installer #39

Open thekoma opened 2 years ago

thekoma commented 2 years ago

Hi! Nice project! HAve you considered creating a krew installer?

Like the one for ctx. It makes everything more linear from an user perspective and also help the project to grow working like advertising.

EDIT: missing info

danielfoehrKn commented 2 years ago

Hi, thanks for the suggestion. In general, that is a good idea.

Kubeswitch consists of the switch.sh script and the switcher binary. The flow would look like kubectl -> switch.sh -> switcher-> switch.sh set KUBECONFIG env However, I am unsure if a script called by kubectl can manipulate the env variables of the calling shell session.