Skip to content

Commit

Permalink
make the cluster as unhealthy if miss heartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Zhang committed Nov 13, 2024
1 parent 5e53eb3 commit 3c0541d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (r *Reconciler) syncClusterProfileCondition(mc *clusterv1beta1.MemberCluste
// Set the unknown health condition in the cluster profile status.
meta.SetStatusCondition(&cp.Status.Conditions, metav1.Condition{
Type: clusterinventory.ClusterConditionControlPlaneHealthy,
Status: metav1.ConditionUnknown,
Status: metav1.ConditionFalse,
Reason: clusterHeartbeatLostReason,
ObservedGeneration: cp.Generation,
Message: "The Fleet member agent has lost its heartbeat connection to the Fleet hub cluster",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestSyncClusterProfileCondition(t *testing.T) {
},
},
clusterProfile: &clusterinventory.ClusterProfile{},
expectedConditionStatus: metav1.ConditionUnknown,
expectedConditionStatus: metav1.ConditionFalse,
expectedConditionReason: clusterHeartbeatLostReason,
},
{
Expand Down

0 comments on commit 3c0541d

Please sign in to comment.