containerized-data-importer
containerized-data-importer copied to clipboard
Fix flake where cross ns finalizer can't be removed
Signed-off-by: Alex Kalenyuk [email protected]
What this PR does / why we need it:
We fail to remove the finalizer because the mutating webhook validates source ns exists,
but source ns might not be around anymore, and that is absolutely fine if DV is marked for deletion.
The "offending" test case is [test_id:4960]
.
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: https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_containerized-data-importer/2363/pull-containerized-data-importer-e2e-ceph-gc/1552213098473984000 https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_containerized-data-importer/2381/pull-containerized-data-importer-e2e-ceph-gc/1555211218673733632 https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_containerized-data-importer/2371/pull-containerized-data-importer-e2e-ceph-gc/1553016969739898880
Release note:
NONE
/test all
How about a unit test making sure this is working as expected, like Should always accept mutate when dv is marked for deletion
?
How about a unit test making sure this is working as expected, like
Should always accept mutate when dv is marked for deletion
?
good idea, done
/lgtm @mhenriks any other thoughts?
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mhenriks
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [mhenriks]
Approvers can indicate their approval by writing /approve
in a comment
Approvers can cancel approval by writing /approve cancel
in a comment