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

Kube context is not loaded in podman desktop until restart #6406

Closed
odockal opened this issue Mar 13, 2024 · 9 comments · Fixed by #7463
Closed

Kube context is not loaded in podman desktop until restart #6406

odockal opened this issue Mar 13, 2024 · 9 comments · Fixed by #7463

Comments

@odockal
Copy link
Contributor

odockal commented Mar 13, 2024

Bug description

I have no ~/.kube/config file, thus not kube context available. I install DevSandbox extension in Podman Desktop and create a dev-sandbox resource (aka logging in and getting oc login command). At this moment I have my ~/.kube.config filled with information about dev sandbox cluster and technically can connect to it. Podman Desktop has not information about the context until I restart it, then it works.

Operating system

Windows 10, 11

Installation Method

Installer from website/GitHub releases

Version

1.8.0

Steps to reproduce

  1. Make sure to remove any kubeconfig file beforehand. rm -rf ~/.kube
  2. Start up podman desktop
  3. Crate and start podman machine
  4. Download Kind/Minikube or install dev sandbox
  5. Create a kind cluster (or any other that touches ~/.kube/config and add new kube context)
  6. Assert: New kube context is available in the Podman Desktop
    Actual result: No kube context added. Only after restart or reenblement of the kube-context extension

Relevant log output

No response

Additional context

Kind and minikube could have the same problem, I believe.

@feloy
Copy link
Contributor

feloy commented Mar 13, 2024

related to #6307

@cdrage
Copy link
Contributor

cdrage commented Mar 14, 2024

Encountered the same issue today, and with the included fix of #6307

Mine was the fact that the Kubernetes dashboard sections did not appear until restart either.

@jeffmaury
Copy link
Contributor

Cannot reproduce using 1.10.0-next

@odockal
Copy link
Contributor Author

odockal commented Apr 26, 2024

@jeffmaury Cleaned up all the machine. hit this again, except with OpenShift Local adjusted kubeconfig.

@odockal
Copy link
Contributor Author

odockal commented Apr 26, 2024

Disable+enable of Kube-context extension did the job though.

@feloy
Copy link
Contributor

feloy commented May 29, 2024

@odockal I cannot reproduce the issue on Windows 11 with Podman Desktop v1.10.2

Is it reproducible on your side with this version?

@odockal
Copy link
Contributor Author

odockal commented May 29, 2024

@feloy It is reproducible with 1.10.3 as well. I have update steps to reproduce.

kube-context-not-loaded

@feloy
Copy link
Contributor

feloy commented May 30, 2024

Thanks @odockal. The trick was to remove the parent directory (.kube/), not only the kubeconfig file, as noticed by @axel7083 in containers/podman-desktop-extension-ai-lab#1135, but I was only removing the kubeconfig file.

I tested by removing the parent directory, and it is effectively reproducible. I'll make a fix

@odockal
Copy link
Contributor Author

odockal commented May 30, 2024

@feloy Great! It is always the best to have the very precise steps to reproduce. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants