File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
internal/controller/atlasthirdpartyintegrations Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -78,23 +78,20 @@ func NewAtlasThirdPartyIntegrationsReconciler(
7878
7979// For prepares the controller for its target Custom Resource; AtlasThirdPartyIntegration
8080func (r * AtlasThirdPartyIntegrationHandler ) For () (client.Object , builder.Predicates ) {
81- return & akov2.AtlasThirdPartyIntegration {}, builder .WithPredicates (predicate.GenerationChangedPredicate {})
81+ obj := & akov2.AtlasThirdPartyIntegration {}
82+ return obj , ctrlrtbuilder .WithPredicates (
83+ predicate .Or (
84+ mckpredicate .AnnotationChanged ("mongodb.com/reapply-period" ),
85+ predicate.GenerationChangedPredicate {},
86+ ),
87+ mckpredicate .IgnoreDeletedPredicate [client.Object ](),
88+ )
8289}
8390
8491func (h * AtlasThirdPartyIntegrationHandler ) SetupWithManager (mgr ctrl.Manager , rec reconcile.Reconciler , defaultOptions controller.Options ) error {
8592 h .Client = mgr .GetClient ()
86- obj := & akov2.AtlasThirdPartyIntegration {}
8793 return controllerruntime .NewControllerManagedBy (mgr ).
88- For (
89- obj ,
90- ctrlrtbuilder .WithPredicates (
91- predicate .Or (
92- mckpredicate .AnnotationChanged ("mongodb.com/reapply-period" ),
93- predicate.GenerationChangedPredicate {},
94- ),
95- mckpredicate .IgnoreDeletedPredicate [client.Object ](),
96- ),
97- ).
94+ For (h .For ()).
9895 Watches (
9996 & akov2.AtlasProject {},
10097 handler .EnqueueRequestsFromMapFunc (h .integrationForProjectMapFunc ()),
You can’t perform that action at this time.
0 commit comments