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

Relax version checking when using a custom K0sBinaryPath #745

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

kke
Copy link
Contributor

@kke kke commented Aug 5, 2024

Fixes #740

Removes the remote k0s version check after binary installation when using a custom K0sBinaryPath.

@kke kke added bug Something isn't working enhancement New feature or request labels Aug 5, 2024
@twz123
Copy link
Member

twz123 commented Aug 5, 2024

Would this allow mixed version clusters?

@kke
Copy link
Contributor Author

kke commented Aug 5, 2024

Possibly when using custom binary paths

@twz123
Copy link
Member

twz123 commented Aug 5, 2024

Maybe k0sctl could allow to omit the version in the config if the binaries will be uploaded. The version seems to be futile in this scenario. If the version is in the config, it seems logical to enforce it.

@kke
Copy link
Contributor Author

kke commented Aug 5, 2024

And k0s doesn't protest

@kke
Copy link
Contributor Author

kke commented Aug 5, 2024

It could also print a warning k0s version checking is disabled when using K0sBinaryPath

@kke
Copy link
Contributor Author

kke commented Aug 8, 2024

Maybe k0sctl could allow to omit the version in the config if the binaries will be uploaded.

When k0s version is not set, latest is defaulted. spec.k0s.version is global, spec.hosts[*].k0sBinaryPath is per host. If the latter isn't given for every host, it wouldn't know which version to use for the others. 🤔

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>

Add a warning

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke force-pushed the dont-check-k0sbinarypath branch from 3a6bc10 to ad9d6ec Compare August 8, 2024 11:43
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke merged commit 891ca56 into main Aug 15, 2024
37 checks passed
@kke kke deleted the dont-check-k0sbinarypath branch August 15, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot run locally built k0s binary without specifying the exact version
2 participants