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

cluster shell default command breaks after a cluster delete #145

Open
pepov opened this issue Oct 13, 2019 · 0 comments
Open

cluster shell default command breaks after a cluster delete #145

pepov opened this issue Oct 13, 2019 · 0 comments

Comments

@pepov
Copy link
Contributor

pepov commented Oct 13, 2019

Describe the bug
I create a cluster, then use cluster shell to interact with it. When I delete the cluster the default banzai cluster shell command no longer works, just if I set --cluster or --cluster-name explicitly.

Expected behavior
The default cluster shell command should work even if the previously used cluster is deleted.

Additional info
My best guess is that the previous cluster's env vars are still set while the context.Init function assumes that the cluster still exists:
https://github.com/banzaicloud/banzai-cli/blob/master/internal/cli/command/cluster/context/context.go#L77

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