diff --git a/images/virtualization-artifact/pkg/controller/vm/internal/sync_kvvm.go b/images/virtualization-artifact/pkg/controller/vm/internal/sync_kvvm.go index 83f70e2de..6360cea4d 100644 --- a/images/virtualization-artifact/pkg/controller/vm/internal/sync_kvvm.go +++ b/images/virtualization-artifact/pkg/controller/vm/internal/sync_kvvm.go @@ -215,6 +215,11 @@ func (h *SyncKvvmHandler) isWaiting(vm *virtv2.VirtualMachine) bool { if c.Status != metav1.ConditionTrue { return true } + + case vmcondition.TypeSizingPolicyMatched: + if c.Status != metav1.ConditionTrue { + return true + } } } return false diff --git a/images/virtualization-artifact/pkg/controller/vm/vm_controller.go b/images/virtualization-artifact/pkg/controller/vm/vm_controller.go index 80c3adc2a..1d34d2649 100644 --- a/images/virtualization-artifact/pkg/controller/vm/vm_controller.go +++ b/images/virtualization-artifact/pkg/controller/vm/vm_controller.go @@ -62,11 +62,11 @@ func SetupController( internal.NewFilesystemHandler(), internal.NewSnapshottingHandler(client), internal.NewPodHandler(client), + internal.NewSizePolicyHandler(), internal.NewSyncKvvmHandler(dvcrSettings, client, recorder), internal.NewSyncMetadataHandler(client), internal.NewLifeCycleHandler(client, recorder), internal.NewStatisticHandler(client), - internal.NewSizePolicyHandler(), } r := NewReconciler(client, handlers...)