Commit e3c3ecdf authored by Manuel Buil's avatar Manuel Buil

Add '-all' flag to apply to inactive units

Signed-off-by: 's avatarManuel Buil <mbuil@suse.com>
parent 3ce8dd17
......@@ -416,7 +416,7 @@ func ParsePods(kubeConfig string, print bool) ([]Pod, error) {
// RestartCluster restarts the k3s service on each node given
func RestartCluster(nodeNames []string) error {
for _, nodeName := range nodeNames {
cmd := "sudo systemctl restart k3s*"
cmd := "sudo systemctl restart k3s* --all"
if _, err := RunCmdOnNode(cmd, nodeName); err != nil {
return err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment