Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d0edb96

Browse files
committedMar 17, 2025··
re-add predicate for paused
1 parent 83b7cb9 commit d0edb96

3 files changed

+3
-3
lines changed
 

‎controllers/vmware/serviceaccount_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func AddServiceAccountProviderControllerToManager(ctx context.Context, controlle
9797
&clusterv1.Cluster{},
9898
handler.EnqueueRequestsFromMapFunc(clusterToSupervisorVSphereClusterFunc(r.Client)),
9999
).
100-
WithEventFilter(predicates.ResourceHasFilterLabel(mgr.GetScheme(), predicateLog, controllerManagerCtx.WatchFilterValue)).
100+
WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(mgr.GetScheme(), predicateLog, controllerManagerCtx.WatchFilterValue)).
101101
WatchesRawSource(r.clusterCache.GetClusterSource("providerserviceaccount", clusterToSupervisorVSphereClusterFunc(r.Client))).
102102
Complete(r)
103103
}

‎controllers/vmware/servicediscovery_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func AddServiceDiscoveryControllerToManager(ctx context.Context, controllerManag
116116
&clusterv1.Cluster{},
117117
handler.EnqueueRequestsFromMapFunc(clusterToSupervisorVSphereClusterFunc(r.Client)),
118118
).
119-
WithEventFilter(predicates.ResourceHasFilterLabel(mgr.GetScheme(), predicateLog, controllerManagerCtx.WatchFilterValue)).
119+
WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(mgr.GetScheme(), predicateLog, controllerManagerCtx.WatchFilterValue)).
120120
WatchesRawSource(r.clusterCache.GetClusterSource("servicediscovery/vspherecluster", clusterToSupervisorVSphereClusterFunc(r.Client))).
121121
Complete(r)
122122
}

‎controllers/vmware/vspheremachinetemplate_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func AddVSphereMachineTemplateControllerToManager(ctx context.Context, controlle
5656
&vmoprv1.VirtualMachineClass{},
5757
handler.EnqueueRequestsFromMapFunc(r.enqueueVirtualMachineClassToVSphereMachineTemplateRequests),
5858
).
59-
WithEventFilter(predicates.ResourceHasFilterLabel(mgr.GetScheme(), predicateLog, controllerManagerContext.WatchFilterValue)).
59+
WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(mgr.GetScheme(), predicateLog, controllerManagerContext.WatchFilterValue)).
6060
Complete(r)
6161
}
6262

0 commit comments

Comments
 (0)
Please sign in to comment.