Commit 290f67c9 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 2b24c991
...@@ -419,7 +419,7 @@ func ParsePods(kubeConfig string, print bool) ([]Pod, error) { ...@@ -419,7 +419,7 @@ func ParsePods(kubeConfig string, print bool) ([]Pod, error) {
// RestartCluster restarts the k3s service on each node given // RestartCluster restarts the k3s service on each node given
func RestartCluster(nodeNames []string) error { func RestartCluster(nodeNames []string) error {
for _, nodeName := range nodeNames { for _, nodeName := range nodeNames {
cmd := "sudo systemctl restart k3s*" cmd := "sudo systemctl restart k3s* --all"
if _, err := RunCmdOnNode(cmd, nodeName); err != nil { if _, err := RunCmdOnNode(cmd, nodeName); err != nil {
return err 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