Repository navigation
feat(infra): Open CloudNativePG window before drain - #6976
Merged
dan-petty merged 1 commit intoNov 24, 2026
Merged
Conversation
dan-petty
force-pushed
the
feat/5267-open-a-cloudnativepg-window-to-drain-a-node
branch
from
November 24, 2026 06:38
3afda4a to
8fdee58
Compare
Patch single-instance CloudNativePG clusters whose primary runs on a disruptive host with a maintenance window before the drain check. Close the window after uncordon and wait for cluster health. Refuse the host when git contains the field or Argo CD self-heal overwrites it without ignoreDifferences. Closes #5267 Change: `openspec/changes/archive/2026-11-24-5267-open-a-cloudnativepg-window-to-drain-a-node/`
dan-petty
force-pushed
the
feat/5267-open-a-cloudnativepg-window-to-drain-a-node
branch
from
November 24, 2026 06:48
8fdee58 to
34bd670
Compare
dan-petty
marked this pull request as ready for review
November 24, 2026 06:55
dan-petty
deleted the
feat/5267-open-a-cloudnativepg-window-to-drain-a-node
branch
November 24, 2026 11:10
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 24, 2026
🤖 I have created a release *beep* *boop* --- ## [0.209.0](v0.208.0...v0.209.0) (2026-11-24) ### Features * **infra:** apply a merged infra PR in a step job ([#6980](#6980)) ([e3329b3](e3329b3)) * **infra:** Open CloudNativePG window before drain ([#6976](#6976)) ([16a309e](16a309e)) * **infra:** run drift in cluster and plan infra PRs ([#6977](#6977)) ([4c8afce](4c8afce)) * **monitoring:** Record the shared roadmap Service selectors ([#6978](#6978)) ([205ebcb](205ebcb)) * **service:** cache GitHub issue state in the brain from webhooks ([#6966](#6966)) ([ed82af5](ed82af5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
devops infra apply(#5125) drains each disruptive host with no--force, so a PodDisruptionBudget applies. A CloudNativePG cluster with 1 instance has a primary PodDisruptionBudget that allows 0 disruptions. On homelab, the control-plane node runs two such clusters (llm-gateway-dbinllm,mattermost-dbinmattermost). The drain check (kubectl drain --dry-run=server) of that node stops the apply witherror when evicting pods/"llm-gateway-db-1" -n "llm": global timeout reached. To drain the node safely, the apply must open a maintenance window on each single-instance CloudNativePG cluster whose primary runs on that node before the drain check, and close the window after the uncordon.Closes #5267
Change:
openspec/changes/archive/2026-11-24-5267-open-a-cloudnativepg-window-to-drain-a-node/