Skip to content

Commit cba0a02

Browse files
authored
Fix - Add missing watch when creating VirtualMachineSnapshot controller (#3667)
1 parent 7c04f3a commit cba0a02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/syncer/cnsoperator/controller/virtualmachinesnapshot/virtualmachinesnapshot_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
162162
workerThreadsEnvVar, defaultMaxWorkerThreads)
163163
// Create a new controller.
164164
err := ctrl.NewControllerManagedBy(mgr).Named("virtualmachinesnapshot-controller").
165+
For(&vmoperatortypes.VirtualMachineSnapshot{}).
165166
WithEventFilter(predicate.GenerationChangedPredicate{}).
166167
WithOptions(controller.Options{MaxConcurrentReconciles: maxWorkerThreads}).
167168
Complete(r)

0 commit comments

Comments
 (0)