MnrGreg / kubectl-node-restart

Krew plugin to restart Kubernetes Nodes sequentially and gracefully
Other
104 stars 11 forks source link

Do not sleep after the last node #12

Closed pnedkov closed 4 months ago

pnedkov commented 4 months ago

In my opinion, there is no point in sleeping after the last node is completed. In fact, the documentation itself says "Sleep delay between restarting Nodes". There is no "between nodes" after the last one.

The added code executes sleep $nodesleep after each node except the last one.

What do you think?