Skip to content

Commit 8fea0d2

Browse files
Fix repetitive events
1 parent a2ce2a2 commit 8fea0d2

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

exp/controllers/azuremanagedcontrolplane_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ func (amcpr *AzureManagedControlPlaneReconciler) reconcileNormal(ctx context.Con
260260
// No errors, so mark us ready so the Cluster API Cluster Controller can pull it
261261
scope.ControlPlane.Status.Ready = true
262262
scope.ControlPlane.Status.Initialized = true
263-
amcpr.Recorder.Event(scope.ControlPlane, corev1.EventTypeNormal, "AzureManagedControlPlane available", "successfully reconciled")
264263
return reconcile.Result{}, nil
265264
}
266265

exp/controllers/azuremanagedmachinepool_controller.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"time"
2222

2323
"github.com/pkg/errors"
24-
corev1 "k8s.io/api/core/v1"
2524
apierrors "k8s.io/apimachinery/pkg/api/errors"
2625
"k8s.io/client-go/tools/record"
2726
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
@@ -282,7 +281,6 @@ func (ammpr *AzureManagedMachinePoolReconciler) reconcileNormal(ctx context.Cont
282281

283282
// No errors, so mark us ready so the Cluster API Cluster Controller can pull it
284283
scope.SetAgentPoolReady(true)
285-
ammpr.Recorder.Eventf(scope.InfraMachinePool, corev1.EventTypeNormal, "AzureManagedMachinePool available", "agent pool successfully reconciled")
286284
return reconcile.Result{}, nil
287285
}
288286

0 commit comments

Comments
 (0)