Add '-all' flag to apply to inactive units

Signed-off-by: Manuel Buil <mbuil@suse.com>
pull/7567/head
Manuel Buil 2023-05-17 12:24:23 +02:00
parent 2b24c9917c
commit 290f67c939
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,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
}