-
Notifications
You must be signed in to change notification settings - Fork 40k
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 possible panic in PodAffinityChecker #33086
Fix possible panic in PodAffinityChecker #33086
Conversation
Reviewed 1 of 1 files at r1. Comments from Reviewable |
LGTM |
Oh and thanks for fixing! |
Automatic merge from submit-queue |
@davidopp you're welcome. I've created cherrypick PR |
Commit found in the "release-1.4" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
Commit found in the "release-1.4" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…k-of-#33086-upstream-release-1.4 Automatic merge from submit-queue Automated cherry pick of kubernetes#33086 Cherry pick of kubernetes#33086 on release-1.4.
In
PodAffinityChecker.getMatchingAntiAffinityTerms()
affinity.PodAntiAffinity
can benil
in this place. This problem occurs e.g. whennil
is passed asmeta
toPodAffinityChecker.InterPodAffinityMatches()
.Stumbled upon it while working on #31136 (someone PTAL at that PR too, I've submitted it a month ago and seemingly no one noticed it), kube-controller-manager was crashing there.
This change is