containerized-data-importer/pkg/controller/common
kubevirt-bot 8abf94a81f
[release-v1.57] Allow ImmediateBinding annotation when using populators (#2793)
* Allow ImmediateBind annotation when using populators

In case of using PVC with populators if the PVC has this
annotation we prevent from waiting for it to be schedueled
and we proceed with the process.
When using datavolumes with populators in case the dv has the annotation
it will be passed to the PVC. we prevent from being in pendingPopulation
in case the created pvc has the annotaion.
Plus when having honorWaitForFirstConsumer feature gate disabled we will
put on the target PVC the immediateBind annotation.
Now we allow to use populators when having the annotation the the
feature gate disabled.

Signed-off-by: Shelly Kagan <skagan@redhat.com>

* Add functional tests to population using PVCs

Signed-off-by: Shelly Kagan <skagan@redhat.com>

* Support immediate binding with clone datavolume

Signed-off-by: Shelly Kagan <skagan@redhat.com>

* Pass allowed annotations from target pvc to pvc prime

This annotations are used for the import/upload/clone
pods to define netork configurations.

Signed-off-by: Shelly Kagan <skagan@redhat.com>

---------

Signed-off-by: Shelly Kagan <skagan@redhat.com>
Co-authored-by: Shelly Kagan <skagan@redhat.com>
2023-07-10 14:23:16 +02:00
..
BUILD.bazel [release-v1.57] DataVolume Controller uses VolumeCloneSource Populator (#2783) 2023-06-30 20:16:35 +02: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 Backport main commits to 1.57 release branch (#2764) 2023-06-22 00:59:17 +02:00
util.go [release-v1.57] Allow ImmediateBinding annotation when using populators (#2793) 2023-07-10 14:23:16 +02:00