podman-desktop icon indicating copy to clipboard operation
podman-desktop copied to clipboard

Kube context is not loaded in podman desktop until restart

Open odockal opened this issue 1 year ago • 5 comments

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

Description has steps to reproduce.

Relevant log output

No response

Additional context

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

odockal avatar Mar 13 '24 15:03 odockal

related to #6307

feloy avatar Mar 13 '24 16:03 feloy

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.

cdrage avatar Mar 14 '24 21:03 cdrage

Cannot reproduce using 1.10.0-next

jeffmaury avatar Apr 18 '24 15:04 jeffmaury

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

odockal avatar Apr 26 '24 19:04 odockal

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

odockal avatar Apr 26 '24 19:04 odockal

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

Is it reproducible on your side with this version?

feloy avatar May 29 '24 08:05 feloy

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

kube-context-not-loaded

odockal avatar May 29 '24 19:05 odockal

Thanks @odockal. The trick was to remove the parent directory (.kube/), not only the kubeconfig file, as noticed by @axel7083 in https://github.com/containers/podman-desktop-extension-ai-lab/pull/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

feloy avatar May 30 '24 07:05 feloy

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

odockal avatar May 30 '24 07:05 odockal