-
Notifications
You must be signed in to change notification settings - Fork 40.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix to honor PDB with an empty selector {}
#119732
Conversation
Skipping CI for Draft Pull Request. |
Please note that we're already in Test Freeze for the Fast forwards are scheduled to happen every 6 hours, whereas the most recent run was: Wed Aug 2 10:20:21 UTC 2023. |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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/test-infra repository. |
/retest |
/cc @liggitt Hello Jordan, Could you PTAL at this change? |
lgtm, this is consistent with PDB v1 documented behavior this needs a test demonstrating the issue and the fix |
PDB with an empty selector `{}` is selecting all the pods in a namespace. But, during the `drain`, all the pods are getting evicted which is not expected. This change should fix the issue and honor the pdb before evicting the pods. Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>
/sig apps |
LGTM label has been added. Git tree hash: 3bb2d2351a6f9aba90e7c12ec62bf699d8be9c27
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, sairameshv The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…119732-upstream-release-1.28 Automated cherry pick of #119732: Fix to honor PDB with an empty selector `{}`
…119732-upstream-release-1.27 Automated cherry pick of #119732: Fix to honor PDB with an empty selector `{}`
PDB with an empty selector
{}
is selecting all the pods in a namespace. But, during thedrain
, all the pods are getting evicted which is not expected. This change should fix the issue and honor the pdb before evicting the pods.What type of PR is this?
/kind bug
Which issue(s) this PR fixes:
Fixes #119731
Special notes for your reviewer:
Issue could be part of #95083 that was fixed by #99290
Somehow this change could have been missed and is on the similar lines as of this change
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: