mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
move remainingNodes outof drain loop
This commit is contained in:
parent
f54d2a0dd1
commit
0c66b43d7a
@ -319,12 +319,12 @@ func (o *DrainCmdOptions) RunDrain() error {
|
|||||||
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if len(remainingNodes) > 0 {
|
if len(remainingNodes) > 0 {
|
||||||
fmt.Fprintf(o.ErrOut, "There are pending nodes to be drained:\n")
|
fmt.Fprintf(o.ErrOut, "There are pending nodes to be drained:\n")
|
||||||
for _, nodeName := range remainingNodes {
|
for _, nodeName := range remainingNodes {
|
||||||
fmt.Fprintf(o.ErrOut, " %s\n", nodeName)
|
fmt.Fprintf(o.ErrOut, " %s\n", nodeName)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user