Commit Graph

2 Commits

Author SHA1 Message Date
Arnon Gilboa
754961b2ce
Align DV controllers with kubevirt sync/updateStatus model (#2525)
* Align DV controllers with kubevirt sync/updateStatus model

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

* CR fixes

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

* Update DV in sync if meta changed

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

* Fix meta and status update checks

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

* Fix DeepEqual check

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

* Some more CR fixes

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
2023-01-12 12:47:09 +00:00
Arnon Gilboa
bfe30a8964
Split and refactor DV controller (#2483)
- Split the huge DV controller into smaller op-specific DV controllers -
  import, clone, upload
- Add common watch-adding function so each controller watches only its
  relevant DVs
- Refactor the common Reconcile() to use interface DataVolumeReconciler
  implemented by each controller
- Move all functions, structs, consts to the relevant controller
- Split the utests per controller

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
2022-12-22 01:03:15 +00:00