From 4d6e1673feb94a4f40f8ade3b8b16078e49ec344 Mon Sep 17 00:00:00 2001 From: Satyanarayana Kolluri Date: Wed, 8 Oct 2025 14:07:17 +0530 Subject: [PATCH] Fix - Add missing watch when creating VirtualMachineSnapshot controller --- .../virtualmachinesnapshot/virtualmachinesnapshot_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/syncer/cnsoperator/controller/virtualmachinesnapshot/virtualmachinesnapshot_controller.go b/pkg/syncer/cnsoperator/controller/virtualmachinesnapshot/virtualmachinesnapshot_controller.go index 57845fba4c..fa344df766 100644 --- a/pkg/syncer/cnsoperator/controller/virtualmachinesnapshot/virtualmachinesnapshot_controller.go +++ b/pkg/syncer/cnsoperator/controller/virtualmachinesnapshot/virtualmachinesnapshot_controller.go @@ -162,6 +162,7 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error { workerThreadsEnvVar, defaultMaxWorkerThreads) // Create a new controller. err := ctrl.NewControllerManagedBy(mgr).Named("virtualmachinesnapshot-controller"). + For(&vmoperatortypes.VirtualMachineSnapshot{}). WithEventFilter(predicate.GenerationChangedPredicate{}). WithOptions(controller.Options{MaxConcurrentReconciles: maxWorkerThreads}). Complete(r)