mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 15:10:12 +00:00
Leverage global SSHAgentAuth setting
This addresses users issues in being unable to use RKE command line using SSH_AUTH_SOCK. On OSX the socket env var is set, but nothing is listening. Also, Linux users have reported issues. To address this the default mode is to not use SSH Agent Auth. A user must set it explicitly in either the config file or on the CLI. The only way to use a passphrase protected key file is with a properly configured SSH Agent and using SSH Agent Auth.
This commit is contained in:
@@ -29,6 +29,9 @@ func UpCommand() cli.Command {
|
||||
Usage: "Deploy Kubernetes cluster locally",
|
||||
},
|
||||
}
|
||||
|
||||
upFlags = append(upFlags, sshCliOptions...)
|
||||
|
||||
return cli.Command{
|
||||
Name: "up",
|
||||
Usage: "Bring the cluster up",
|
||||
@@ -139,6 +142,12 @@ func clusterUpFromCli(ctx *cli.Context) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to parse cluster file: %v", err)
|
||||
}
|
||||
|
||||
rkeConfig, err = setOptionsFromCLI(ctx, rkeConfig)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
_, _, _, _, err = ClusterUp(context.Background(), rkeConfig, nil, nil, nil, false, "")
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user