Skip to content

Nothing happens if I try to set a non-responsive cluster as current cluster #865

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

Closed
adietish opened this issue Apr 16, 2025 · 1 comment · Fixed by #866
Closed

Nothing happens if I try to set a non-responsive cluster as current cluster #865

adietish opened this issue Apr 16, 2025 · 1 comment · Fixed by #866
Assignees
Milestone

Comments

@adietish
Copy link
Collaborator

adietish commented Apr 16, 2025

related to


Steps:

  1. ASSERT: have a cluster that's shut down (ex. have kind cluster defined in kubeconfig, but it's not running)
  2. EXEC: in resource tree: right click on the entry for the non-responsive cluster and pick "Set as current cluster"

Result:
Nothing happens. In the status bar you see a running operation "Setting kind as current cluster". This operation can easily be running for several minutes.
Even worse is that the IDE cannot be closed gracefully when this operation is running. You have to forcefully kill it.


Steps 2:

  1. ASSERT: have a cluster that's shut down (ex. have kind cluster defined in kubeconfig, but it's not running)
  2. EXEC: start up the IDE, open the Kubernetes tool window. Wait for the contexts to be listed.

Result:
It takes several seconds (~20s in my case) until the contexts are listed


I suspect this to have been introduced with the switch to the new kubernetes-client 7.0.0

@adietish adietish self-assigned this Apr 16, 2025
@adietish adietish added this to the 1.6.0 milestone Apr 16, 2025
@adietish adietish moved this to 📝 In Progress in IDE Cloudaptors Apr 16, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 22, 2025
@adietish
Copy link
Collaborator Author

The culprit is the check if the new current cluster is an OpenShift cluster. It's executed on any cluster (so that either a kubernetes- or an OpenShift-client is created). This check runs into a timeout.

adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 23, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 23, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 23, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 23, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 23, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 23, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 24, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 24, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 24, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 24, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 24, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 24, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 24, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 24, 2025
@adietish adietish moved this from 📝 In Progress to 👀 In review in IDE Cloudaptors Apr 24, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 28, 2025
adietish added a commit that referenced this issue May 12, 2025
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in IDE Cloudaptors May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant