containerized-data-importer/pkg/controller
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
..
clone [release-v1.57] Fix inferring for temp host assisted source PVC in snapshot clones (#3182) 2024-04-11 14:58:01 +02:00
common [release-v1.57] Fix inferring for temp host assisted source PVC in snapshot clones (#3182) 2024-04-11 14:58:01 +02:00
datavolume [release-v1.57] Fix inferring for temp host assisted source PVC in snapshot clones (#3182) 2024-04-11 14:58:01 +02:00
populators Prevent upload populator from hot looping prime annotation (#2992) 2023-11-18 01:07:15 +01:00
transfer increase controller cuncurrency and cpu requests (#2867) 2023-08-24 19:50:37 +02:00
BUILD.bazel [release-v1.57] Watch DIC-orphan cronjobs and cleanup them (#3121) 2024-03-06 14:52:42 +01:00
clone-controller_test.go Mount block PVC rw in clone source pods (#2957) 2023-11-05 19:07:25 +01:00
clone-controller.go Mount block PVC rw in clone source pods (#2957) 2023-11-05 19:07:25 +01:00
config-controller_test.go PVC Clone Populator (#2709) 2023-05-24 05:11:52 +02:00
config-controller.go increase controller cuncurrency and cpu requests (#2867) 2023-08-24 19:50:37 +02:00
controller_suite_test.go Stop Using Deprecated Packages (#1548) 2020-12-24 07:08:50 +01:00
dataimportcron-conditions.go [release-v1.57] Add new Prometheus alerts and label existing alerts (#3041) 2024-01-03 20:29:20 +01:00
dataimportcron-controller_test.go [release-v1.57] Fix inferring for temp host assisted source PVC in snapshot clones (#3182) 2024-04-11 14:58:01 +02:00
dataimportcron-controller.go [release-v1.57] Fix inferring for temp host assisted source PVC in snapshot clones (#3182) 2024-04-11 14:58:01 +02:00
datasource-controller_test.go golangci-lint: Enable errcheck (#2696) 2023-04-25 20:40:16 +02:00
datasource-controller.go increase controller cuncurrency and cpu requests (#2867) 2023-08-24 19:50:37 +02:00
import-controller_test.go Respect wffc override for blank block disks (#3170) 2024-04-09 11:21:54 +02:00
import-controller.go Respect wffc override for blank block disks (#3170) 2024-04-09 11:21:54 +02:00
storageprofile-controller_test.go [release-v1.57] Add new Prometheus alerts and label existing alerts (#3041) 2024-01-03 20:29:20 +01:00
storageprofile-controller.go [release-v1.57] Add new Prometheus alerts and label existing alerts (#3041) 2024-01-03 20:29:20 +01:00
upload-controller_test.go enable ginkgolinter and fix findings (#2703) 2023-05-04 13:07:36 +02:00
upload-controller.go increase controller cuncurrency and cpu requests (#2867) 2023-08-24 19:50:37 +02:00
util_test.go Address error condition when scratch space is needed to avoid VM failures (#2950) 2023-10-31 17:36:20 +01:00
util.go Address error condition when scratch space is needed to avoid VM failures (#2950) 2023-10-31 17:36:20 +01:00