-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
UPSTREAM: 23078: Check claimRef UID when processing a recycled PV #8100
Conversation
[test] |
2 similar comments
[test] |
[test] |
This has NOT merged upstream yet |
Upstream has merged. |
@liggitt merge? |
Need to fix a potential issue w/the upstream PR. Once that's ready, I'll close this and submit a replacement. |
@ncdc whats the issue upstream ? |
the code assumes a non nil claim is usable without checking if there is a non nil error |
Hmm.. I don't think I follow |
@swagiaal with this patch the way it's currently coded, you could potentially get back an error that isn't "not found" and a non-nil claim. It's more appropriate to do this:
See kubernetes/kubernetes#23548 for what I did |
…ke 2 Reorder code a bit so it doesn't allow a case where you get some error other than "not found" combined with a non-nil Claim. Add test case.
Evaluated for origin test up to 8cbb8af |
LGTM. @smarterclayton merge? |
Do you approve? |
Yes. @childsb please sign off. |
looks good, added the LGTM label |
Approved [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5515/) (Image: devenv-rhel7_3909) |
Evaluated for origin merge up to 8cbb8af |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/2695/) |
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1310587