CCO-845: use AlwaysAllow UnhealthyPodEvictionPolicy option in PDBs #1019
@atiratree: This pull request references CCO-845 which is a valid jira issue.
<details>
In response to this:
>Allow eviction of unhealthy (not ready) pods even if there are no disruptions
>allowed on a PodDisruptionBudget. This can help to drain/maintain a node and
>recover without a manual intervention when multiple instances of nodes or pods
>are misbehaving.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
</details>
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->
Walkthrough
PodDisruptionBudget manifest was updated to add spec.unhealthyPodEvictionPolicy: AlwaysAllow, affecting eviction behavior for unhealthy pods in the embedded asset and its source YAML.
Changes
|Cohort / File(s)|Summary|
|---|---|
|PodDisruptionBudget assets <br> bindata/v4.1.0/common/poddisruptionbudget.yaml, pkg/assets/v410_00_assets/bindata.go|Added spec.unhealthyPodEvictionPolicy: AlwaysAllow to the PodDisruptionBudget spec in the source YAML and the embedded asset string.|
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~2 minutes
<!-- walkthrough_end -->
<!-- pre_merge_checks_walkthrough_start -->
<details>
<summary>🚥 Pre-merge checks | ✅ 12</summary>
<details>
<summary>✅ Passed checks (12 passed)</summary>
| Check name | Status | Explanation |
| :----------------------------------------------: | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Title check | ✅ Passed | The title clearly and specifically references the main change: adding AlwaysAllow UnhealthyPodEvictionPolicy to PodDisruptionBudgets (PDBs). |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Stable And Deterministic Test Names | ✅ Passed | This PR modifies only Kubernetes manifest files and auto-generated bindata assets. No Ginkgo test files are included in the changes. |
| Test Structure And Quality | ✅ Passed | PR modifies only manifest and auto-generated bindata files; no test code changes present. |
| Microshift Test Compatibility | ✅ Passed | This pull request does not add any new Ginkgo e2e tests. The changes are limited to modifying a Kubernetes PodDisruptionBudget manifest file to add the unhealthyPodEvictionPolicy: AlwaysAllow configuration, and updating the corresponding generated bindata asset file. Since the MicroShift Test Compatibility check specifically applies to when new Ginkgo e2e tests are added, and no new tests are present in this PR, the check is not applicable and passes by default. |
| Single Node Openshift (Sno) Test Compatibility | ✅ Passed | PR modifies only non-test files (PDB YAML manifest and auto-generated bindata.go). No Ginkgo test definitions present. |
| Topology-Aware Scheduling Compatibility | ✅ Passed | The PR adds unhealthyPodEvictionPolicy: AlwaysAllow to PodDisruptionBudget without modifying topology-sensitive constraints like minAvailable or selectors, improving eviction handling across all topologies. |
| Ote Binary Stdout Contract | ✅ Passed | PR changes only update an embedded Kubernetes manifest with unhealthyPodEvictionPolicy configuration in generated bindata.go; no stdout writes or process entry point violations introduced. |
| Ipv6 And Disconnected Network Test Compatibility | ✅ Passed | This pull request does not add any Ginkgo e2e tests. The changes consist solely of modifications to a Kubernetes PodDisruptionBudget manifest file and its corresponding embedded asset file. |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
</details>
<sub>✏️ Tip: You can configure your own custom pre-merge checks in the settings.</sub>
</details>
<!-- pre_merge_checks_walkthrough_end -->
<!-- finishing_touch_checkbox_start -->
<details>
<summary>✨ Finishing Touches</summary>
<details>
<summary>🧪 Generate unit tests (beta)</summary>
</details>
</details>
<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->
---
<sub>Comment @coderabbitai help to get the list of available commands and usage tips.</sub>
<!-- tips_end -->
<!-- internal state start -->
<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCr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FPlZAindkozTc1FXc2IbLGIZPPII5X88yFgD4/MoUn4kUpQEfHLMszwzDKbbwug3w6s1YgI8rBs4wkItUunVs9s6I2I+IvOUQo/POM/GomQjMUZU7M2SZaZbaW/cRDoqRd0oYoqIoR+BeKYsc0LOY96FY/w9YrAD8SAE49xM41kJpfADQqcRkKDBPBIADMS9hUKDEQC9gKCIcH8DyGoUBCGA5RQY5QhWM9UhnfwU7bod3KCDDQy3M2oE8sQHChnSgSg6goiiXEimU5TOUtYusoImilUjglsjUtsrUjs8PDnbsxbdi1IrvRSa3MM/AHIsSMYgo4M/JeE4UCo8GKojHdPSxChR8ewP7DUPpZouzCGYCYS+ZRZLouctuNZWLcSqA1/aBEqEJfY6QQ44+D8qZOgISzFW0gKNy+ijU/SbgCQR0WwyAVueycgMQG0AYDOBIYcBKHMtC5gDC+AAs7Cos3CsU/CogCKtkKK6UinOKyi+smKqrZK0I9ahndKvgpi7K4wqCzLMMRACMFONPLPSUyKvPUirrNi5I79MvJXB7G0KAFiJQIjbWXAQATAJkAEAiBYAXplRkIq4oJUAyAwECcHqGdSyXq2D/q6LesNSB4YbDM2sv0ABdfDZjBkXAWwKG7mtGvONtRtAQQdEgEgdNBgR0FNWgN9WgYUCYBgE0AQWgR0DNEIEgDW2gIIaYBNNAR0BgQtONMYWgGYR0N4HtONZtJW0NeWyNcbIWxkWwWTBnMIONE282hgdW4tEICYfNKNIIfNMYcNYUEII+R0M2kIF20NUNFtEYR0ZNP0EIVNCNOW5NMNR0HtEdaYNAONAQd2vHQEWgS9aDOKWwRU6i79ecWgGwTMMWgDFOBXeumUxnQ0FujAb2zu2g7upuvugbBgSwsHQe6KgwHDYwQ2ZdVdSgDdHrD1Bdcteej/MpD4qIFdVTXe1kfdQNQ9D2kWmvWgWIXAHkLxW9CdXAFiTMUPDgCYWepdTe7e6IX1TDFdNe/mIAA= -->
<!-- internal state end -->
_⚠️ Potential issue_ | _🔴 Critical_
<details>
<summary>🧩 Analysis chain</summary>
🌐 Web query:
Kubernetes unhealthyPodEvictionPolicy PodDisruptionBudget valid values and minimum version
💡 Result:
The valid values for unhealthyPodEvictionPolicy in a Kubernetes PodDisruptionBudget are "IfHealthyBudget" and "AlwaysAllow". If unspecified, it defaults to "IfHealthyBudget". - "IfHealthyBudget": Running but unhealthy pods can be evicted only if the application is not disrupted (currentHealthy >= desiredHealthy). - "AlwaysAllow": Running but unhealthy pods can always be evicted, regardless of PDB criteria. This field is part of the policy/v1 PodDisruptionBudget API. It was introduced as alpha in Kubernetes v1.26 (requires feature gate PDBUnhealthyPodEvictionPolicy=true), promoted to beta by v1.31 (enabled by default), and is stable in recent versions as of 2026.
Citations:
---
🌐 Web query:
OpenShift 4.1.0 Kubernetes version compatibility
💡 Result:
OpenShift Container Platform 4.1.0 is compatible with Kubernetes 1.13.
Citations:
---
</details>
Remove unhealthyPodEvictionPolicy or target a supported Kubernetes version.
The unhealthyPodEvictionPolicy field requires Kubernetes 1.26+, but OpenShift 4.1.0 includes only Kubernetes 1.13. This field will be rejected by the API during validation. Either remove this line, or update the target OpenShift/Kubernetes version to 4.10+ (which includes Kubernetes 1.23+) or later.
<details>
<summary>🤖 Prompt for AI Agents</summary>
Verify each finding against the current code and only fix it if needed.
In `@bindata/v4.1.0/common/poddisruptionbudget.yaml` at line 8, The manifest
contains the unsupported field unhealthyPodEvictionPolicy in
poddisruptionbudget.yaml which is rejected by older OpenShift/Kubernetes; remove
the unhealthyPodEvictionPolicy: AlwaysAllow line from the PodDisruptionBudget
resource (search for unhealthyPodEvictionPolicy in poddisruptionbudget.yaml) or
alternatively update the component's target platform/version metadata to an
OpenShift/Kubernetes release that includes this field (bump target to OpenShift
4.10+ / Kubernetes 1.23+ wherever the chart/manifests declare supported
versions).
</details>
<!-- fingerprinting:phantom:triton:puma:528c39c6-6861-4687-9a91-131c65c68502 -->
<!-- d98c2f50 -->
<!-- This is an auto-generated reply by CodeRabbit -->
✅ Confirmed as addressed by @jstuever
<!-- This is an auto-generated comment by CodeRabbit -->
Actionable comments posted: 1
<details>
<summary>🤖 Prompt for all review comments with AI agents</summary>
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@bindata/v4.1.0/common/poddisruptionbudget.yaml`:
- Line 8: The manifest contains the unsupported field unhealthyPodEvictionPolicy
in poddisruptionbudget.yaml which is rejected by older OpenShift/Kubernetes;
remove the unhealthyPodEvictionPolicy: AlwaysAllow line from the
PodDisruptionBudget resource (search for unhealthyPodEvictionPolicy in
poddisruptionbudget.yaml) or alternatively update the component's target
platform/version metadata to an OpenShift/Kubernetes release that includes this
field (bump target to OpenShift 4.10+ / Kubernetes 1.23+ wherever the
chart/manifests declare supported versions).
</details>
<details>
<summary>🪄 Autofix (Beta)</summary>
Fix all unresolved CodeRabbit comments on this PR:
</details>
---
<details>
<summary>ℹ️ Review info</summary>
<details>
<summary>⚙️ Run configuration</summary>
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 4617dcba-c593-4951-bef3-ee23f7f0525a
</details>
<details>
<summary>📥 Commits</summary>
Reviewing files that changed from the base of the PR and between 374560dea0d04ab3802ab6360de4440bbd956650 and e10a751c0f5fe30251f96548229974f8713d002c.
</details>
<details>
<summary>📒 Files selected for processing (1)</summary>
bindata/v4.1.0/common/poddisruptionbudget.yaml</details>
</details>
<!-- This is an auto-generated comment by CodeRabbit for review status -->
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 46.88%. Comparing base (
374560d) to head (afe058b).:warning: Report is 12 commits behind head on master.
<details><summary>Additional details and impacted files</summary>

@@ Coverage Diff @@
## master #1019 +/- ##
=======================================
Coverage 46.88% 46.88%
=======================================
Files 98 98
Lines 12558 12558
=======================================
Hits 5888 5888
Misses 6015 6015
Partials 655 655
| Files with missing lines | Coverage Δ | |
|---|---|---|
| pkg/assets/v410\_00\_assets/bindata.go | 42.71% <ø> (ø) | |
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>
</details>
/retest
The master branch currently targeting OpenShift v4.22, as can be identified in the Dockerfile. This is regularly updated to match the next version of OpenShift.
@jstuever, thank you for the clarification! I misread the v4.1.0 directory prefix as the target OpenShift/Kubernetes version. Since the master branch targets OpenShift v4.22 (which ships with Kubernetes well past v1.26), the unhealthyPodEvictionPolicy: AlwaysAllow field is fully supported and the concern is invalid. I apologize for the noise.
<!-- <review_comment_addressed> -->
---
📝 Learnings were identified and not saved (knowledge base disabled). Enable
<!-- This is an auto-generated reply by CodeRabbit -->
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/openshift/cloud-credential-operator/pull/1019#" title="Author self-approved">atiratree</a>, <a href="https://github.com/openshift/cloud-credential-operator/pull/1019#issuecomment-4381515157" title="Approved">jstuever</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
/verified by @jstuever
@jstuever: This PR has been marked as verified by @jstuever.
<details>
In response to this:
>/verified by @jstuever
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
</details>
@atiratree: all tests passed!
Full PR test history. Your PR dashboard.
<details>
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
</details>
<!-- test report -->
jstuever
atiratree
Allow eviction of unhealthy (not ready) pods even if there are no disruptions
allowed on a PodDisruptionBudget. This can help to drain/maintain a node and
recover without a manual intervention when multiple instances of nodes or pods
are misbehaving.
Conventions change: https://github.com/openshift/enhancements/pull/1995
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Configuration
PodDisruptionBudget updated to include unhealthyPodEvictionPolicy: AlwaysAllow, permitting eviction of unhealthy pods during disruptions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->