Skip to content

Commit 61082f2

Browse files
committed
bugfix function aggregateFromMachinesToKCP
Signed-off-by: wm775825 <[email protected]>
1 parent 3809194 commit 61082f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controlplane/kubeadm/internal/workload_cluster_conditions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ func aggregateFromMachinesToKCP(input aggregateFromMachinesToKCPInput) {
559559
}
560560

561561
// In case of no errors, no warning, and at least one machine with info, report false, info.
562-
if len(kcpMachinesWithWarnings) > 0 {
562+
if len(kcpMachinesWithInfo) > 0 {
563563
conditions.MarkFalse(input.controlPlane.KCP, input.condition, input.unhealthyReason, clusterv1.ConditionSeverityWarning, "Following machines are reporting %s info: %s", input.note, strings.Join(sets.List(kcpMachinesWithInfo), ", "))
564564
return
565565
}

0 commit comments

Comments
 (0)