File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ func createClientOpts(config *config.ServerConfig) *clientbase.ClientOpts {
185
185
AccessKey : config .AccessKey ,
186
186
SecretKey : config .SecretKey ,
187
187
CACerts : config .CACerts ,
188
+ Insecure : config .Insecure ,
188
189
}
189
190
return options
190
191
}
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ func LoginCommand() cli.Command {
61
61
Name : "skip-verify" ,
62
62
Usage : "Skip verification of the CACerts presented by the Server" ,
63
63
},
64
+ cli.BoolFlag {
65
+ Name : "insecure" ,
66
+ Usage : "Allow insecure server connections" ,
67
+ },
64
68
},
65
69
}
66
70
}
@@ -80,7 +84,9 @@ func loginSetup(ctx *cli.Context) error {
80
84
serverName = "rancherDefault"
81
85
}
82
86
83
- serverConfig := & config.ServerConfig {}
87
+ serverConfig := & config.ServerConfig {
88
+ Insecure : ctx .Bool ("insecure" ),
89
+ }
84
90
85
91
// Validate the url and drop the path
86
92
u , err := url .ParseRequestURI (ctx .Args ().First ())
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ type ServerConfig struct {
30
30
CACerts string `json:"cacert"`
31
31
KubeCredentials map [string ]* ExecCredential `json:"kubeCredentials"`
32
32
KubeConfigs map [string ]* api.Config `json:"kubeConfigs"`
33
+ Insecure bool `json:"insecure"`
33
34
}
34
35
35
36
func (c Config ) Write () error {
You can’t perform that action at this time.
0 commit comments