Skip to content

Commit

Permalink
Give each controller unique names
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Sep 6, 2024
1 parent 4bc07d7 commit 423b640
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/kops-controller/controllers/awsipam.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (r *AWSIPAMReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct

func (r *AWSIPAMReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
Named("aws-ipam").
For(&corev1.Node{}).
Complete(r)
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kops-controller/controllers/gceipam.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func (r *GCEIPAMReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct

func (r *GCEIPAMReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
Named("gce-ipam").
For(&corev1.Node{}).
Complete(r)
}
1 change: 1 addition & 0 deletions cmd/kops-controller/controllers/legacy_node_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func (r *LegacyNodeReconciler) Reconcile(ctx context.Context, req ctrl.Request)

func (r *LegacyNodeReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
Named("legacy-node").
For(&corev1.Node{}).
Complete(r)
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kops-controller/controllers/node_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (r *NodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.

func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
Named("node").
For(&corev1.Node{}).
Complete(r)
}
Expand Down

0 comments on commit 423b640

Please sign in to comment.