-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: take the embedded version cluster into account (#102)
when deciding to start or not an upgrade we should take into account what is the current embedded cluster we are running on. without this fix we end up starting a cluster upgrade when it is not necessary. we were using the kubernetes version (as in `kubectl version`) to determine if an upgrade was necessary or not. it turns out that when installed with k0s version v1.29.1+k0s.1 the kubernetes version reported is v1.29.1+k0s (notice the missing .1 at the end). because of this the running verion was never equal to the desired version (v1.29.1+k0s.1 != v1.29.1+k0s). now we take into account the actual embedded cluster version. we do so through an environment variable. this environment variable will change only when the new operator deployment takes place (add-on upgrade) and at that stage the kubernetes has already been upgraded.
- Loading branch information
1 parent
7f1fae7
commit 26026e1
Showing
2 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters