Skip to content

Commit

Permalink
allow joins to work properly with k3sExtraArgs
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Billimek <[email protected]>
  • Loading branch information
billimek authored and alexellis committed Sep 16, 2019
1 parent 113b829 commit 2444de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func setupAgent(serverIP, ip net.IP, port int, user, sshKeyPath, joinToken strin

defer operator.Close()

getTokenCommand := fmt.Sprintf(`curl -sfL https://get.k3s.io/ | K3S_URL="https://%s:6443" K3S_TOKEN="%s" sh - %s`, serverIP.String(), strings.TrimSpace(joinToken), k3sExtraArgs)
getTokenCommand := fmt.Sprintf("curl -sfL https://get.k3s.io/ | K3S_URL='https://%s:6443' K3S_TOKEN='%s' sh -s - %s", serverIP.String(), strings.TrimSpace(joinToken), k3sExtraArgs)
fmt.Printf("ssh: %s\n", getTokenCommand)

res, err := operator.Execute(getTokenCommand)
Expand Down

0 comments on commit 2444de5

Please sign in to comment.