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

Ignore missing k0s binary on reset and avoid panic #465

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Conversation

kke
Copy link
Contributor

@kke kke commented Feb 22, 2023

Fixes #464

The version constraint was some remnant from an earlier version when it was necessary to ignore a non-zero exit code on certain versions of k0s. It has been ignoring the error for a while anyway and just continued onwards.

Here the problem was that the semver returned nil (error was not checked), which made the condition after it panic.

@kke kke added the bug Something isn't working label Feb 22, 2023
@kke kke merged commit d0e13a3 into main Feb 22, 2023
@kke kke deleted the fix-panic-on-reset branch February 22, 2023 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reset should fail more graceful when k0s not installed
1 participant