-
Notifications
You must be signed in to change notification settings - Fork 30
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 functional test that checks if tenant PVC cannot access unlabeled infra PVCs #125
Conversation
… infra PVCs This test creates a PVC in the infra cluster manually and then tries to access it from a tenant cluster by crafting a special PVC that references the infra PVC. Since the labels will not match the PVC should not be accessible. After wards one will not be able to delete the tenant PV because there is no matching PVC in the infra cluster. This removes the check that the tenant PV can be deleted. Signed-off-by: Alexander Wels <[email protected]>
d9e6cc9
to
9eb053a
Compare
This was the key part for me. What still feels off to me is that I don't understand why this started failing just now. Sorry for being a pain I am hesitant to give out an lgtm here without having rock solid understanding of what it is that made it start failing now when it should have in fact failed when the test was introduced |
Yeah I honestly don't know either, that commit did add the code so it is likely that is culprit. But it passed CI without issues. |
How come the PV is even around if we're using csi-driver/e2e/create-pvc_test.go Line 572 in 35836e0
|
Can https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/2644-honor-pv-reclaim-policy be related somehow? It went beta in 1.31. |
I don't think so, the problem is that when we delete the PV in the tenant cluster, it can't find (correctly) the matching PV in the infra cluster, and returns an error. This causes the PV to not get deleted. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awels 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 |
What this PR does / why we need it:
This test creates a PVC in the infra cluster manually and then tries to access it from a tenant cluster by crafting a special PVC that references the infra PVC.
Since the labels will not match the PVC should not be accessible. After wards one will not be able to delete the tenant PV because there is no matching PVC in the infra cluster.
This removes the check that the tenant PV can be deleted.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: