okteto / docker-desktop-extension

Docker Extension for Okteto
Apache License 2.0
5 stars 4 forks source link

Pass --context as parameter instead of switching user's current context #47

Closed rlamana closed 2 years ago

rlamana commented 2 years ago

Fixes #29

rlamana commented 2 years ago

Right now if users don't have the Okteto Cloud context, we consider them not logged in -> A "Login" button is displayed and when it is clicked we call okteto context use https://cloud.okteto.com. This changes users current context, which is what we are trying to avoid with this PR. @pchico83 can you think of a different way to configure the Cloud context without affecting their current context?

(A nasty workaround would be to store the current context, do USE and then USE again the stored context, to restore it...)