vscode-openshift-tools icon indicating copy to clipboard operation
vscode-openshift-tools copied to clipboard

Active project does not update when changed

Open jpapejr opened this issue 1 year ago • 5 comments

Type: Bug

Describe the bug

Expected Behavior

When I select another project from the list, the name indicated in the Application Explorer should be updated to reflect the change.

Current Behavior

Previous project name remains shown in Application Explorer view

Steps to Reproduce

  1. Login to a cluster
  2. Select a project.
  3. Select another project
  4. Note the name doesn't update

Environment

MacOS - 13.4 - M1 SoC VSCode 1.78.2, b3e4e68a0bc097f0ae7907b217c1119af9e03435, arm64

Extension version: 1.5.0 VS Code version: Code 1.78.2 (Universal) (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:44:45.204Z) OS version: Darwin arm64 22.5.0 Modes: Sandboxed: No

System Info
Item Value
CPUs Apple M1 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.09GB free)
Process Argv
Screen Reader no
VM 0%

jpapejr avatar Jun 07 '23 20:06 jpapejr

We are having difficulty reproducing the bug. Do you mind answering a few questions? :

  • What type of cluster are you using? eg. are you using kind, minikube, OpenShift Local (crc), OpenShift Sandbox, or something else? Depending on the permissions you have on the cluster, some of the code we are using to change projects/namespaces might not work. For example, you can only access one project when using OpenShift Sandbox.
  • Do you have write access to .kube/config? To the best of my knowledge, we use the KubeConfig file in order to keep track of the current namespace, so if the file cannot be written to, this could cause the issue you described

datho7561 avatar Jun 19 '23 17:06 datho7561

@datho7561 Sorry for the delay..

I'm using a Red Hat OpenShift on IBM Cloud cluster. I have full permission in the cluster as the admin user. Being local admin on my Mac, I think it's safe to say I have write access to the cube config file.

jpapejr avatar Jun 27 '23 19:06 jpapejr

Are you able to change projects using the oc CLI tool? (eg. oc project openshift)

Honestly, I'm kind of stumped and can't reproduce the issue.

datho7561 avatar Jun 27 '23 20:06 datho7561

I can change via oc just fine. I'll spin up a new cluster and see if I can recreate and possibly add more detail.

jpapejr avatar Jun 29 '23 15:06 jpapejr

Hello @jpapejr , any update on this issue. Let us know and we would like to fix this if the issue persists or close it if it works fine for you with the latest release of the extension.

mohitsuman avatar Jul 27 '23 19:07 mohitsuman