containerized-data-importer/pkg/controller/common
Alex Kalenyuk 93304e739c
[release-v1.57] Fix inferring for temp host assisted source PVC in snapshot clones (#3182)
* Clone from snapshot: fix volume/access mode inferring for temp host assisted source PVC

Sometimes with snapshot cloning we have to fall back to host assisted.
To do this, we create a temporary restore from the snapshot and initiate a host assisted clone
from that -> target PVC.
The issue this commit fixes is that we set the wrong access/volume modes on this temporary restore PVC
(we set it to the target's).

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

* Annotate dataimportcron-created snapshot with their source volume mode

This would then get capitalized on by host assisted fallbacks from snapshot cloning

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

---------

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
2024-04-11 14:58:01 +02:00
..
BUILD.bazel GetActiveCDI() should return success if single resource in error state (#3110) 2024-02-22 11:50:28 +01:00
controller_suite_test.go Create unit test suite for new folders following refactor (#2518) 2022-12-23 01:50:32 +00:00
runtime-util.go Split and refactor DV controller (#2483) 2022-12-22 01:03:15 +00:00
util_test.go GetActiveCDI() should return success if single resource in error state (#3110) 2024-02-22 11:50:28 +01:00
util.go [release-v1.57] Fix inferring for temp host assisted source PVC in snapshot clones (#3182) 2024-04-11 14:58:01 +02:00