You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
klog.V(2).InfoS("Member agent status not found in internal member cluster status, skip updating member cluster status related fields", "memberCluster", klog.KObj(mc))
547
+
return
528
548
}
529
549
530
-
r.aggregateJoinedCondition(mc)
550
+
// The remaning fields are only updated when member-agent is updated.
531
551
// Copy resource usages.
532
552
mc.Status.ResourceUsage=imc.Status.ResourceUsage
533
553
// Copy additional conditions.
554
+
// Right now all the additional conditions are reported by the member-agent.
534
555
foridx:=rangeimc.Status.Conditions {
535
556
cond:=imc.Status.Conditions[idx]
536
-
cond.ObservedGeneration=mc.GetGeneration()
557
+
cond.ObservedGeneration=mc.GetGeneration()// using the mc generation
klog.V(4).InfoS("Aggregate joined condition from all agents", "memberCluster", klog.KObj(mc))
569
591
varunknownMessagestring
570
-
iflen(mc.Status.AgentStatus) <len(r.agents) {
571
-
unknownMessage=fmt.Sprintf("Member cluster %s has not reported all the expected agents, expected %d, got %d", mc.Name, len(r.agents), len(mc.Status.AgentStatus))
592
+
iflen(agentStatus) <len(r.agents) {
593
+
unknownMessage=fmt.Sprintf("Member cluster %s has not reported all the expected agents, expected %d, got %d", mc.Name, len(r.agents), len(agentStatus))
0 commit comments