Merge pull request #16010 from borg-land/dumping-logic

Dump nodes even if controlplane is broken
This commit is contained in:
Kubernetes Prow Robot 2023-10-12 09:44:59 +02:00 committed by GitHub
commit c24e575c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -137,10 +137,6 @@ func (d *logDumper) DumpAllNodes(ctx context.Context, nodes corev1.NodeList, add
dumped = append(dumped, node)
}
}
// If none of the special nodes was successfully dumped, there is no value in dumping the rest
if len(dumped) == 0 {
return fmt.Errorf("could not dump any special node")
}
for i := range regular {
if len(dumped) >= MaxNodesToDump {