-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
The UI does not display custom Kubeconfig files #8147
Comments
I also noticed the lens could not show the config files related to the AWS EKS. All yaml files are from the EKS. configs look likeapiVersion: v1 clusters:
contexts:
current-context: xxx users:
|
|
The EKS clusters are not visible because of |
thanks. it helped |
Thanks @panuhorsmalahti, had the same issue and that resolved it for me. |
Describe the bug
Lens only shows kubecontexts from the ~/.kube/config file, ignoring other .yaml kubeconfig files in the ~/.kube/ directory. Even though the SYNCED ITEMS path is set to ~/.kube/, kubecontexts from additional .yaml files are not being displayed in the "Local Kubeconfigs" section.
Reproduce
Steps to reproduce the behavior:
Open Lens and go to the "Manage Kubeconfigs" section.
Confirm that the SYNCED ITEMS path is set to ~/.kube/.
Place multiple valid kubeconfig .yaml files in the ~/.kube/ directory (besides ~/.kube/config).
Open Lens and check the kubecontexts listed under "Local Kubeconfigs."
Observe that only kubecontexts from ~/.kube/config are displayed, while other .yaml files are ignored.
Expected behavior
Lens should display kubecontexts from all valid .yaml kubeconfig files in the ~/.kube/ directory, not just those from ~/.kube/config.
Environment (please complete the following information):
Lens Version: November 28, 2024
OS: macOS
Additional context
This issue started occurring after the most recent Lens upgrade. Previously, kubecontexts from all valid .yaml kubeconfig files in the ~/.kube/ directory were detected correctly.
The text was updated successfully, but these errors were encountered: