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

Kuby can sometimes be attempting to push to old clusters #2

Open
lazyatom opened this issue Oct 26, 2020 · 1 comment
Open

Kuby can sometimes be attempting to push to old clusters #2

lazyatom opened this issue Oct 26, 2020 · 1 comment

Comments

@lazyatom
Copy link

I've noticed this issue while testing Kuby, where I'm frequently creating and destroying clusters -- I believe the implementation here means that kuby tries to use the cached kubeconfig.yaml file, even though the details provided to Kuby's configuration have changed, resulting in the error message Error: Kubernetes cluster unreachable when trying to run kuby setup.

I'd suggest we create a hash of the credentials, and include that into kubeconfig_path somehow, such that any change to the credentials results in an immediate refresh of the Kubernetes configuration.

@camertron
Copy link
Member

@lazyatom you're absolutely right, it just looks to see if the kubeconfig file exists, which won't pick up on changes made in your kuby config. I'll file an issue for this.

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

2 participants