Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rancher Desktop should not automatically switch context upon starting #622

Closed
ManiacDC opened this issue Sep 17, 2021 · 6 comments · Fixed by #1491
Closed

Rancher Desktop should not automatically switch context upon starting #622

ManiacDC opened this issue Sep 17, 2021 · 6 comments · Fixed by #1491
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@ManiacDC
Copy link

When launching Rancher Desktop, it switches the current Kubernetes context. I use a namespace within my cluster and have that set up as a separate context, so I have to switch contexts back to my context every time I launch Rancher Desktop.

Alternatively, this could be an option.

@mattfarina mattfarina added this to the v0.7.0 milestone Sep 22, 2021
@mattfarina
Copy link
Contributor

This is a great point and, I think you're right. I've added this to a milestone so we can work on it.

@ericpromislow ericpromislow self-assigned this Oct 14, 2021
@ericpromislow ericpromislow linked a pull request Oct 15, 2021 that will close this issue
@gaktive gaktive added the kind/bug Something isn't working label Oct 15, 2021
@gaktive gaktive modified the milestones: v0.7.0, v1.0.0 Dec 1, 2021
@gaktive
Copy link
Contributor

gaktive commented Dec 1, 2021

We should make this optional with a toggle, in an obvious way with default of "on".

@ManiacDC
Copy link
Author

ManiacDC commented Dec 1, 2021

We should make this optional with a toggle, in an obvious way with default of "on".

You could default to on, though I will point out that I've yet to use another tool to run Kubernetes that automatically switches the context every time it starts up. They typically add it to the configuration and maybe switch it the first time, but that's it.

@jandubois
Copy link
Member

I believe minikube start will switch the context every time you run it unless you use the --keep-context option, so this would essentially be the same behaviour.

@jandubois jandubois modified the milestones: v1.0.0-beta, v1.0.0 Jan 12, 2022
@dhruvbaldawa
Copy link

+1 to this issue, this is a little inconvenient if the context changes everytime RD restarts. colima preserves the context after restart, I would love if we can have a similar behavior in RD.

@jandubois jandubois modified the milestones: v1.0.0, v1.1.0 Jan 14, 2022
@gaktive gaktive modified the milestones: v1.1.0, v1.0.1 Jan 25, 2022
@avodaqstephan
Copy link

+1
I applied manifests multiple times to the wrong cluster just because I needed to start up RD to build some images or run a container locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
7 participants