mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
fix(capi-providers-core): stage unfinished kubeadm installations
A kubeadm installation can finish at its old requested version while
core moves to the intermediate release. Ignoring its initial empty
installedVersion leaves the final bootstrap chart outside its supported
upgrade window.
Fixes: 4d251f4122 ("fix(capi-providers-core): let a never-installed provider take the fresh path")
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
3 files changed
+82
-14
No files matched your search
Vendored
+2
@@ -92,6 +92,8 @@ if verb == "get":
|
||||
obj["status"]["readyReplicas"] = 1
|
||||
obj["status"]["availableReplicas"] = 1
|
||||
del state["rolloutReads"][name]
|
||||
if name == "capi-controller-manager" and "bootstrapAfterCore" in state and obj["status"]["readyReplicas"] == 1:
|
||||
state["providers"]["kubeadm"] = state.pop("bootstrapAfterCore")
|
||||
save()
|
||||
print(json.dumps(obj))
|
||||
elif verb == "patch":
|
||||
|
||||
Reference in new issue
Block a user