Skip to content

Commit

Permalink
include 'sudo ./' at the beginning of the node join command (#4088)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Oct 19, 2023
1 parent a7ee18d commit 661acfb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions pkg/helmvm/jointoken.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/helmvm/node_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func GenerateAddNodeCommand(ctx context.Context, client kubernetes.Interface, to
return "", fmt.Errorf("failed to get admin console port: %w", err)
}

return fmt.Sprintf("%s node join %s:%d %s", binaryName, nodeIP, port, token), nil
return fmt.Sprintf("sudo ./%s node join %s:%d %s", binaryName, nodeIP, port, token), nil
}

// GenerateK0sJoinCommand returns the k0s node join command, without the token but with all other required flags
Expand Down

0 comments on commit 661acfb

Please sign in to comment.