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:
Aleksei Sviridkin committed 2026-11-18 15:01:21 +03:00
1 parent 2d1d98364d
commit 191e2f45fa
3 files changed
+82 -14

No files matched your search

+2
View File
@@ -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":