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

Check length of container array to prevent panic #21

Closed
wants to merge 1 commit into from

Conversation

cloudnautique
Copy link

I had a cluster that died after starting due to a bad config. I
quickly went to get the kubeconfig and would get a panic with an
out of bounds error.

An alternate would be to look at all containers and not just running.

I had a cluster that died after starting due to a bad config. I
quickly went to get the kubeconfig and would get a panic with an
out of bounds error.

An alternate would be to look at all containers and not just running.
@cloudnautique
Copy link
Author

when it fails you get:

./bin/k3d get-kubeconfig --name bad
2019/05/02 10:58:31 Couldn't get server container for cluster: bad
<nil>

I could break it out into it's own check, but its kind of the same error...

@cloudnautique
Copy link
Author

Closing in favor of #22 The <nil> will end up bugging me.

@iwilltry42
Copy link
Member

Oh, I missed that, thank you :)
What a coincidence that two people saw this bug at almost the same time.

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

Successfully merging this pull request may close these issues.

2 participants