Add conditions to PDB status#98127
Conversation
|
/test pull-kubernetes-e2e-kind |
|
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
|
/assign @smarterclayton |
soltysh
left a comment
There was a problem hiding this comment.
/lgtm
/approve
/triage accepted
/priority backlog
/label api-review
liggitt
left a comment
There was a problem hiding this comment.
EvictionREST#checkAndDecrement updates PDB status... should it set this condition as well?
|
/test pull-kubernetes-node-e2e |
|
/test pull-kubernetes-unit |
4a35573 to
d720be4
Compare
d720be4 to
902ba94
Compare
There was a problem hiding this comment.
addressing this in a separate PR sounds good to me. I don't think this change makes the issue worse, and gives us a potential tool to address the issue in a follow up
1ec6719 to
b01d20d
Compare
|
/test pull-kubernetes-unit |
|
@liggitt I have addressed the comments. |
|
/test pull-kubernetes-e2e-gce-ubuntu-containerd |
b01d20d to
b08eb95
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, mortent, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
This adds a conditions field to the PDB status object and updates the disruption controller to use the
DisruptionAllowedcondition. This provides information that to some extent is already available through thestatus.DisruptionsAllowedfield, but with this condition we can also communicate the reason why the value ofstatus.DisruptionsAllowedare set to 0. This can be either because not enough pods are available, or because the disruption controller experienced an error.This addresses one of the issues described in the PDB to GA KEP: kubernetes/enhancements#2114
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
@kubernetes/sig-apps-pr-reviews