Files
Carl Danley 4eb5a32cec fix(controller): let a control-plane node that can't join be deleted (#2556)
* fix(controller): let a queued delete of a stuck control-plane node start its teardown

selectControlPlaneJoin skips a node with an accepted delete unless its
join is already in flight, so a node that keeps failing to join no
longer blocks its own delete.

Teardown of a control-plane node that reached ReadyToJoin but never
joined now waits, best effort, for the agent to stop reporting a
pending kubeadm join before it removes the etcd member. The wait is
capped at 30 minutes, ends after 2 minutes if the agent is
unreachable, and is guarded by workflow.GetVersion.

Related: #2387
Signed-off-by: Carl Danley <cdanley@nvidia.com>

* fix(controller): keep the kubeadm join wait inside its limits

End each agent status call when the agent would count as unreachable
or the wait runs out, whichever is first, so a call that hangs after a
run of refusals no longer extends the 2-minute window.

Use a schedule-to-close timeout for the wait activity, so a retry after
a lost worker doesn't start a fresh 30-minute cap.

Signed-off-by: Carl Danley <cdanley@nvidia.com>

---------

Signed-off-by: Carl Danley <cdanley@nvidia.com>
2026-12-02 09:52:30 -05:00
..