diff --git a/pkg/controllers/subnetport/subnetport_controller.go b/pkg/controllers/subnetport/subnetport_controller.go index 166a1152d..7e84e4df9 100644 --- a/pkg/controllers/subnetport/subnetport_controller.go +++ b/pkg/controllers/subnetport/subnetport_controller.go @@ -171,8 +171,8 @@ func (r *SubnetPortReconciler) SetupWithManager(mgr ctrl.Manager) error { MaxConcurrentReconciles: common.NumReconcile(), }). Watches(&vmv1alpha1.VirtualMachine{}, - handler.EnqueueRequestsFromMapFunc(r.vmMapFunc), - builder.WithPredicates(predicate.LabelChangedPredicate{})). + handler.EnqueueRequestsFromMapFunc(r.vmMapFunc), + builder.WithPredicates(predicate.LabelChangedPredicate{})). Complete(r) // TODO: watch the virtualmachine event and update the labels on NSX subnet port. }