Skip to content

Commit

Permalink
Merge pull request #9862 from sbueringer/pr-consistent-event-recorder…
Browse files Browse the repository at this point in the history
…-names

⚠️ Make event recorder names consistent for KCP and topology controller
  • Loading branch information
k8s-ci-robot committed Dec 14, 2023
2 parents 23f09dd + ca8376c commit 53bd47f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controlplane/kubeadm/internal/controllers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (r *KubeadmControlPlaneReconciler) SetupWithManager(ctx context.Context, mg
}

r.controller = c
r.recorder = mgr.GetEventRecorderFor("kubeadm-control-plane-controller")
r.recorder = mgr.GetEventRecorderFor("kubeadmcontrolplane-controller")
r.ssaCache = ssa.NewCache()

if r.managementCluster == nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, opt
Cache: mgr.GetCache(),
}
r.patchEngine = patches.NewEngine(r.RuntimeClient)
r.recorder = mgr.GetEventRecorderFor("topology/cluster")
r.recorder = mgr.GetEventRecorderFor("topology/cluster-controller")
if r.patchHelperFactory == nil {
r.patchHelperFactory = serverSideApplyPatchHelperFactory(r.Client, ssa.NewCache())
}
Expand Down

0 comments on commit 53bd47f

Please sign in to comment.