feat(cloudnative-pg): add operator pod disruption budget - #998
Open
WoahitsJoe wants to merge 1 commit into
Open
Conversation
Add an optional PodDisruptionBudget for the operator deployment with configurable availability and unhealthy-pod eviction policies. Supersedes the conflict-blocked proposal in cloudnative-pg#639. Assisted-by: OpenAI Codex Signed-off-by: Joseph <101808325+WoahitsJoe@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.
Summary
policy/v1PodDisruptionBudget for the CloudNativePG operator DeploymentminAvailableormaxUnavailableas a count or percentage, including zerounhealthyPodEvictionPolicyand validate its supported valuesnamespaceOverride, standard chart labels, andcommonAnnotationsThe chart currently does not create a disruption budget for the operator itself. This leaves operator replicas unprotected during voluntary disruptions such as node drains. The feature remains disabled by default for backward compatibility. When enabled, the default
minAvailable: 1protects the default single-replica operator; users can scale the Deployment and tune the budget for their availability requirements.This setting applies only to the operator Deployment. PodDisruptionBudgets for PostgreSQL clusters continue to be managed by CloudNativePG through the Cluster spec.
Closes #1003.
Supersedes #639 after its author invited a clean replacement based on current
main.Validation
ct lint3.14.0 with Helm 4.2.4 and the repository CI argumentshelm lintwith Helm 4.2.4helm-schema0.23.4 andhelm-docs1.14.2 regenerationcodespellmaxUnavailable: 0, namespace and annotation overrides, and unhealthy-pod policyAI assistance
OpenAI Codex assisted with this contribution. The commit includes the corresponding
Assisted-bytrailer in accordance with the project AI policy.