Skip to content

Commit

Permalink
bugfix function aggregateFromMachinesToKCP
Browse files Browse the repository at this point in the history
Signed-off-by: wm775825 <1174929164@qq.com>
  • Loading branch information
wm775825 committed Feb 19, 2023
1 parent 3809194 commit 61082f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func aggregateFromMachinesToKCP(input aggregateFromMachinesToKCPInput) {
}

// In case of no errors, no warning, and at least one machine with info, report false, info.
if len(kcpMachinesWithWarnings) > 0 {
if len(kcpMachinesWithInfo) > 0 {
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), ", "))
return
}
Expand Down

0 comments on commit 61082f2

Please sign in to comment.