Skip to content

Commit 7b263a4

Browse files
authored
Merge pull request #5313 from AndiDog/controller-identities
🐛 Use different names for controllers watching `AWSCluster` objects
2 parents 71928f2 + d9b0081 commit 7b263a4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

exp/controlleridentitycreator/awscontrolleridentity_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ func (r *AWSControllerIdentityReconciler) Reconcile(ctx context.Context, req ctr
134134
func (r *AWSControllerIdentityReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error {
135135
controller := ctrl.NewControllerManagedBy(mgr).
136136
For(&infrav1.AWSCluster{}).
137+
Named("awscontrolleridentity").
137138
WithOptions(options).
138139
WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(logger.FromContext(ctx).GetLogger(), r.WatchFilterValue))
139140

exp/instancestate/awsinstancestate_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func (r *AwsInstanceStateReconciler) SetupWithManager(ctx context.Context, mgr c
118118
}()
119119
return ctrl.NewControllerManagedBy(mgr).
120120
For(&infrav1.AWSCluster{}).
121+
Named("awsinstancestate").
121122
WithOptions(options).
122123
WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(logger.FromContext(ctx).GetLogger(), r.WatchFilterValue)).
123124
Complete(r)

0 commit comments

Comments
 (0)