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

Saving Kubernetes config doesn't work with multiple files in KUBECONFIG #360

Open
kevinopensquiggly opened this issue Jan 17, 2024 · 0 comments

Comments

@kevinopensquiggly
Copy link

I have a cluster named civokube2, I want to retrieve its config.

I do:

civo kubernetes config civokube2 -s

But that gives me an error "Saving the cluster config failed with open ..." and then shows me all the files in my KUBECONFIG path. The problem is I have multiple kube config files referenced in my KUBECONFIG. It's not just one file. You can't just try to open the file it is pointing to.

So then I thought, okay, I'll tell it which config file to use. So I try:

civo kubernetes config civokube2 -s --config ~/.kube/config

But now I get an different error:

Error: ZeroMatchesError: unable to find civokube2, zero matches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant