Skip to content

Commit

Permalink
make the event message clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Zhang committed Oct 19, 2023
1 parent 95046cb commit 3c3d69b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const (
reasonMemberClusterNotReadyToJoin = "MemberClusterNotReadyToJoin"
reasonMemberClusterJoined = "MemberClusterJoined"
reasonMemberClusterLeft = "MemberClusterLeft"
reasonMemberClusterUnknown = "MemberClusterUnknown"
reasonMemberClusterUnknown = "MemberClusterJoinStateUnknown"
)

// Reconciler reconciles a MemberCluster object
Expand Down Expand Up @@ -581,8 +581,8 @@ func markMemberClusterUnknown(recorder record.EventRecorder, mc apis.Conditioned
// Joined status changed.
existingCondition := mc.GetCondition(newCondition.Type)
if existingCondition == nil || existingCondition.Status != newCondition.Status {
recorder.Event(mc, corev1.EventTypeWarning, reasonMemberClusterUnknown, "member cluster unknown")
klog.V(2).InfoS("memberCluster unknown", "memberCluster", klog.KObj(mc))
recorder.Event(mc, corev1.EventTypeWarning, reasonMemberClusterUnknown, "member cluster join state unknown")
klog.V(2).InfoS("memberCluster join state unknown", "memberCluster", klog.KObj(mc))
}

mc.SetConditions(newCondition)
Expand Down

0 comments on commit 3c3d69b

Please sign in to comment.