From 268a9e7ee7401540092aa2362981edf3d7320866 Mon Sep 17 00:00:00 2001 From: Andrii Dema Date: Fri, 7 Nov 2025 15:37:46 +0200 Subject: [PATCH] K8SPS-601: set `Normal` event type for non-error events https://perconadev.atlassian.net/browse/K8SPS-601 --- pkg/controller/ps/status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/ps/status.go b/pkg/controller/ps/status.go index 7be98b429..0e5a8bea6 100644 --- a/pkg/controller/ps/status.go +++ b/pkg/controller/ps/status.go @@ -105,7 +105,7 @@ func (r *PerconaServerMySQLReconciler) reconcileCRStatus(ctx context.Context, cr mysqlStatus.State = apiv1.StateInitializing log.Info(fmt.Sprintf("Async replication not ready: %s", msg)) - r.Recorder.Event(cr, corev1.EventTypeWarning, "AsyncReplicationNotReady", msg) + r.Recorder.Event(cr, corev1.EventTypeNormal, "AsyncReplicationNotReady", msg) } } } @@ -228,7 +228,7 @@ func (r *PerconaServerMySQLReconciler) reconcileCRStatus(ctx context.Context, cr if status.State != initialState { log.Info("Cluster state changed", "previous", initialState, "current", status.State) - r.Recorder.Event(cr, corev1.EventTypeWarning, "ClusterStateChanged", fmt.Sprintf("%s -> %s", initialState, status.State)) + r.Recorder.Event(cr, corev1.EventTypeNormal, "ClusterStateChanged", fmt.Sprintf("%s -> %s", initialState, status.State)) } return nil }