okteto / remote-kubernetes

Remote Kubernetes Development in VS Code with Okteto
Apache License 2.0
75 stars 15 forks source link

Oketeto up not deploying to active context #174

Closed alexgeek closed 2 years ago

alexgeek commented 2 years ago

Describe the bug Hi, I have a dev and prod context in my kube config. When I switch between dev and prod as the current-context, okteto up ignores this and always use the dev cluster.

To Reproduce Steps to reproduce the behavior:

  1. Switch kube contexts (I use gcloud container clusters get-credentials ...)
  2. Run okteto up
  3. Switch again
  4. Run okteto up

Expected behavior I expect it to use the active context?

Desktop (please complete the following information):

alexgeek commented 2 years ago

I see if I run okteto context I can switch it manually, can it not be picked up automatically?

rberrelleza commented 2 years ago

yes, you're right @alexgeek . #172 will include a command for that, but we need to do some testing.

rberrelleza commented 2 years ago

This is fixed in the 0.4.1 release