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

App. Explorer "hangs" on extension loading if logged out from a cluster

Open vrubezhny opened this issue 11 months ago • 1 comments

When Kube config's current-context points to a cluster which is available, but a user is not logged in to, the extension fails to load the App. explorer initial content permanently staying in "loading..." state.

Steps to reproduce:

  • Log in to "http:/api-rhamilto-devcluster-openshift-com:6443" cluster, see the default project and its contents loaded and shown in App. Explorer
  • Log out from the cluster, see "Login" button appeared instead of the App. Explorer tree
  • Exit VSCode Openshift Tools
  • Stat again, Fail: see the "infinite" loading of App. Explorer

This probably happens because the kubectl utilities, when invoked, are "permanently" waiting for user input:

image

$ kubectl cluster-info
Please enter Username: 

$ kubectl api-versions
Please enter Username:

The issue was highly likely introduced by this commit

vrubezhny avatar Mar 15 '24 22:03 vrubezhny