Skip to content

Commit

Permalink
Merge pull request #2652 from jayesh-srivastava/repetitive-events
Browse files Browse the repository at this point in the history
Omit repetitive events during cluster creation
  • Loading branch information
k8s-ci-robot authored Sep 21, 2022
2 parents d186835 + 8fea0d2 commit d28ff9a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion exp/controllers/azuremanagedcontrolplane_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ func (amcpr *AzureManagedControlPlaneReconciler) reconcileNormal(ctx context.Con
// No errors, so mark us ready so the Cluster API Cluster Controller can pull it
scope.ControlPlane.Status.Ready = true
scope.ControlPlane.Status.Initialized = true
amcpr.Recorder.Event(scope.ControlPlane, corev1.EventTypeNormal, "AzureManagedControlPlane available", "successfully reconciled")
return reconcile.Result{}, nil
}

Expand Down
2 changes: 0 additions & 2 deletions exp/controllers/azuremanagedmachinepool_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"time"

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

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

Expand Down

0 comments on commit d28ff9a

Please sign in to comment.