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

cannot login to existing cluster #3935

Open
Shrubberer opened this issue Feb 24, 2024 · 3 comments
Open

cannot login to existing cluster #3935

Shrubberer opened this issue Feb 24, 2024 · 3 comments
Assignees

Comments

@Shrubberer
Copy link

~/.kube/config exists and oc login works from terminal

However "login into cluster" or "switch context" options will cause error "when attempting to Kubernetes configuration cannot be loaded. Please check configuration files for errors and fix them to continue"

@Shrubberer
Copy link
Author

removed empty context seems to fix the issue.

  • context:
    cluster: ""
    user: ""

@InfoSec812
Copy link

I had this same issue. Seems like the plugin should be able to work around an empty context.

@vrubezhny
Copy link
Contributor

@Shrubberer, @InfoSec812 Can anybody provide an example cluster setup and provide steps to log in to such a cluster?

We rely on Kube config while working with clusters, but once oc login works on the mentioned setup, we probably have to look on how we can support such configurations in VS Code Openshift Tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants