Unverified Commit cdcd4a90 authored by Manuel Buil's avatar Manuel Buil Committed by GitHub

Merge pull request #7567 from manuelbuil/master

Add '-all' flag to apply to inactive systemd units
parents 2b24c991 290f67c9
...@@ -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