mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-13 19:37:43 +00:00
move remainingNodes outof drain loop
This commit is contained in:
@@ -319,6 +319,7 @@ 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")
|
||||||
@@ -326,7 +327,6 @@ func (o *DrainCmdOptions) RunDrain() error {
|
|||||||
fmt.Fprintf(o.ErrOut, " %s\n", nodeName)
|
fmt.Fprintf(o.ErrOut, " %s\n", nodeName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return utilerrors.NewAggregate(fatal)
|
return utilerrors.NewAggregate(fatal)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user