Skip to content

Clear the stale drain deadline on a re-adopted ReplicaSet - #179

Open
darkmuggle wants to merge 1 commit into
mainfrom
bh/174-drain-deadline
Open

Clear the stale drain deadline on a re-adopted ReplicaSet#179
darkmuggle wants to merge 1 commit into
mainfrom
bh/174-drain-deadline

Conversation

@darkmuggle

Copy link
Copy Markdown
Contributor

A ReplicaSet re-adopted as the current version was previously superseded, so it can still carry the removal deadline stamped on it while it drained. Nothing else clears it: the annotation patch on that path uses a different field manager, so server-side apply won't prune it, and cleanup_old_replicasets skips the current version via except_rs.

Left in place, an already-past deadline makes the next rollout tear this version down immediately instead of giving it drainDelaySeconds, stranding whatever is still pinned to it.

Refs #174

A ReplicaSet re-adopted as the current version was previously superseded,
so it can still carry the removal deadline stamped on it while it drained.
Nothing else clears it: the annotation patch on that path uses a different
field manager, so server-side apply won't prune it, and
cleanup_old_replicasets skips the current version via except_rs.

Left in place, an already-past deadline makes the next rollout tear this
version down immediately instead of giving it drainDelaySeconds, stranding
whatever is still pinned to it.

Refs #174
@darkmuggle
darkmuggle requested a review from lukebond August 12, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant