Skip to content

Commit

Permalink
fix recorder event to not spam controller logs for load balancer ready
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Jan 31, 2024
1 parent a4be7f8 commit 9bb835e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controller/linodecluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,12 @@ func (r *LinodeClusterReconciler) reconcile(
if err := r.reconcileCreate(ctx, logger, clusterScope); err != nil {
return res, err
}
r.Recorder.Event(clusterScope.LinodeCluster, corev1.EventTypeNormal, string(clusterv1.ReadyCondition), "Load balancer is ready")
}

clusterScope.LinodeCluster.Status.Ready = true
conditions.MarkTrue(clusterScope.LinodeCluster, clusterv1.ReadyCondition)

r.Recorder.Event(clusterScope.LinodeCluster, corev1.EventTypeNormal, string(clusterv1.ReadyCondition), "Load balancer is ready")

return res, nil
}

Expand Down

0 comments on commit 9bb835e

Please sign in to comment.