-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add K0s utility functions and cleanup #546
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #546 +/- ##
==========================================
- Coverage 53.11% 52.50% -0.62%
==========================================
Files 19 19
Lines 1973 1996 +23
==========================================
Hits 1048 1048
- Misses 795 818 +23
Partials 130 130 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this @wrkode!
I haven't seen the provider code yet so I would suggest we wait before we merge this until we see how it's used (in case the provider implementation shows that there is a better option than what we have here).
relates to kairos-io/kairos#3121 |
Signed-off-by: William Rizzo <[email protected]>
Signed-off-by: William Rizzo <[email protected]>
Signed-off-by: William Rizzo <[email protected]>
see kairos-io/kairos#3126 Signed-off-by: Mauro Morales <[email protected]>
This function is not specific for k3s hence also not for k0s Signed-off-by: Mauro Morales <[email protected]>
For versioning we now use the versioneer package also in this repo. I couldn't find any instance of components depending on utils.Version() so I think it's safe to remove Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Mauro Morales <[email protected]>
This reverts commit c5f48d9.
This is not being used anymore, use Versioneer package instead Signed-off-by: Mauro Morales <[email protected]>
Co-authored-by: Dimitris Karakasilis <[email protected]>
This PR is dependent of kairos-io/kairos-sdk#546, and it adds the possibility to deploy k0s instead of k3s. refactored `oneTimeBootstrap()` to handle k0s and k3s. Added `K0s` type to bootstrap `config` package added k0s to provider `package`` InteractiveInstall()` and check for mutual exclusivity CC: @mauromorales --------- Signed-off-by: William Rizzo <[email protected]> Signed-off-by: Mauro Morales <[email protected]> Co-authored-by: Mauro Morales <[email protected]>
This PR adds the systemd units and Env needed for provider-kairos to be able to manage k0s deployments.
I'm working on the provider-kairos as well.
Utils
PackageK0sBin()
added function for k0s binaryVersion()
Updated to handle both K3s and K0s versionsWriteEnv()
Made generic to handle any service environmentFindCommand
Enhanced to dynamically search for k0sGetInit()
Improved readability and robustnessPowerOFF()
Updated to use a more generic shutdown commandmachine
packageadded k0s services functions
CC @mauromorales