vscode-openshift-tools
vscode-openshift-tools copied to clipboard
Improve status of OpenShift connection (in OpenShift Application Explorer)
Env: Linux, Fedora 36, CRC 2.9.0
I was logged to the CRC OCP in OS app. explorer, having a connection /api-crc-testing:6443/developer
.
An Item was present (a component) under the connection (not sure about proper terminology).
I have manually stopped the crc from cli and call refresh on OpenShift Connection, then the component disappeared (which is alright).
But I still could call action on OS connection as it would have been connected (ie. create new project) which ended up with an error:
Failed to create Project with error 'Error: Command failed: "/home/odockal/.vscode/extensions/redhat.vscode-openshift-connector-0.7.0/out/tools/linux/odo" create namespace myproject2 -w ✗ unable to detect project support: Get "https://api.crc.testing:6443/apis/project.openshift.io/v1?timeout=32s": dial tcp 192.168.130.11:6443: connect: no route to host '
It should show the status of the connection (connected/disconnected) and it should not offer context menu item that are only for connected clusters.