mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 15:06:23 +00:00
Added flag to ignore docker version
This commit is contained in:
committed by
Alena Prokharchyk
parent
db3bda1191
commit
73e56b0fbb
@@ -10,11 +10,15 @@ import (
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
var sshCliOptions = []cli.Flag{
|
||||
var commonFlags = []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "ssh-agent-auth",
|
||||
Usage: "Use SSH Agent Auth defined by SSH_AUTH_SOCK",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "ignore-docker-version",
|
||||
Usage: "Disable Docker version check",
|
||||
},
|
||||
}
|
||||
|
||||
func resolveClusterFile(ctx *cli.Context) (string, string, error) {
|
||||
@@ -41,5 +45,10 @@ func setOptionsFromCLI(c *cli.Context, rkeConfig *v3.RancherKubernetesEngineConf
|
||||
if c.Bool("ssh-agent-auth") {
|
||||
rkeConfig.SSHAgentAuth = c.Bool("ssh-agent-auth")
|
||||
}
|
||||
|
||||
if c.Bool("ignore-docker-version") {
|
||||
rkeConfig.IgnoreDockerVersion = c.Bool("ignore-docker-version")
|
||||
}
|
||||
|
||||
return rkeConfig, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user