containerized-data-importer/pkg/controller/clone
Alex Kalenyuk 39cc6ea853
Fix volume/access mode inferring for temp host assisted source PVC in snapshot clones (#3155)
* 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-05 15:29:50 +02:00
..
BUILD.bazel update k8s & related libraries to 1.28 (#3078) 2024-01-23 17:52:05 +01:00
clone_suite_test.go Update to ginkgo v2 (#2788) 2023-07-26 02:35:55 +02:00
common.go Allow StorageProfile to use a specific VolumeSnapshotClass (#2898) 2023-11-09 13:37:28 +01:00
csi-clone_test.go Update to ginkgo v2 (#2788) 2023-07-26 02:35:55 +02:00
csi-clone.go DataVolume Controller uses VolumeCloneSource Populator (#2750) 2023-06-30 00:14:54 +02:00
host-clone_test.go Update to ginkgo v2 (#2788) 2023-07-26 02:35:55 +02:00
host-clone.go DataVolume Controller uses VolumeCloneSource Populator (#2750) 2023-06-30 00:14:54 +02:00
planner_test.go Fix volume/access mode inferring for temp host assisted source PVC in snapshot clones (#3155) 2024-04-05 15:29:50 +02:00
planner.go Fix volume/access mode inferring for temp host assisted source PVC in snapshot clones (#3155) 2024-04-05 15:29:50 +02:00
prep-claim_test.go Improve handling of bound temp PVC in clone populator (#3126) 2024-03-20 21:01:15 +01:00
prep-claim.go Improve handling of bound temp PVC in clone populator (#3126) 2024-03-20 21:01:15 +01:00
rebind_test.go Update to ginkgo v2 (#2788) 2023-07-26 02:35:55 +02:00
rebind.go DataVolume Controller uses VolumeCloneSource Populator (#2750) 2023-06-30 00:14:54 +02:00
snap-clone_test.go Refactor monitoring code (#3009) 2024-01-02 09:17:18 +01:00
snap-clone.go Refactor monitoring code (#3009) 2024-01-02 09:17:18 +01:00
snapshot_test.go Update to ginkgo v2 (#2788) 2023-07-26 02:35:55 +02:00
snapshot.go DataVolume Controller uses VolumeCloneSource Populator (#2750) 2023-06-30 00:14:54 +02:00