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

"Current namespace" of my old context is overwritten when I switch to a new context #669

Closed
adietish opened this issue Nov 21, 2023 · 0 comments · Fixed by #670
Closed
Assignees
Labels
kind/bug Something isn't working severity/critical
Milestone

Comments

@adietish
Copy link
Collaborator

adietish commented Nov 21, 2023

The following can be applied for any setup with 2 clusters

Steps:

  1. ASSERT: have 2 contexts with different "namespace"s
  • minikube with namespace named "default"
  • redhat sandbox with namespace "<YOUR_USERID>-dev" ("adietish-dev" for me)
contexts:
- context:
    cluster: "api-sandbox-m3-1530-p1-openshiftapps-com:6443"
    namespace: "adietish-dev"
    user: "adietish/api-sandbox-m3-1530-p1-openshiftapps-com:6443"
  name: "adietish-dev/api-sandbox-m3-1530-p1-openshiftapps-com:6443/adietish"
- context:
    cluster: "minikube"
    namespace: "default"
    user: "minikube"
  name: "minikube"
  1. ASSERT: have "minikube" set as current cluster/current namespace
  2. EXEC: in tree: select "sandbox" and pick "Set as Current Cluster" in context menu
  3. EXEC: open ~/.kube/config in an editor and verify the "namespace" for "minikube"

Result:
"namespace" for "minikube" was set to "<YOUR_USERID>-dev" (was "default")

- context:
    cluster: "minikube"
    namespace: "adietish-dev"
    user: "minikube"
  name: "minikube"
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Nov 21, 2023
@adietish adietish self-assigned this Nov 21, 2023
@adietish adietish added kind/bug Something isn't working severity/critical labels Nov 21, 2023
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Nov 21, 2023
adietish added a commit that referenced this issue Nov 21, 2023
@adietish adietish added this to the 1.2.1 milestone Nov 22, 2023
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 severity/critical
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant