Commit 1f48bad2 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

commit

parent 0f861042
...@@ -58,7 +58,7 @@ func NewRootCommand() *cobra.Command { ...@@ -58,7 +58,7 @@ func NewRootCommand() *cobra.Command {
client := versioned.NewForConfigOrDie(&rest.Config{ client := versioned.NewForConfigOrDie(&rest.Config{
Host: regionConfig.ApiServer, Host: regionConfig.ApiServer,
TLSClientConfig: rest.TLSClientConfig{ TLSClientConfig: rest.TLSClientConfig{
Insecure: false, Insecure: regionConfig.Insecure,
CAData: caData, CAData: caData,
CertData: clientCertData, CertData: clientCertData,
KeyData: clientKeyData, KeyData: clientKeyData,
......
...@@ -36,6 +36,7 @@ type RegionConfig struct { ...@@ -36,6 +36,7 @@ type RegionConfig struct {
Token string `yaml:"token"` Token string `yaml:"token"`
ClientCertData string `yaml:"client_cert_data"` ClientCertData string `yaml:"client_cert_data"`
ClientKeyData string `yaml:"client_key_data"` ClientKeyData string `yaml:"client_key_data"`
Insecure bool `yaml:"insecure"`
} }
func LoadConfig() *Config { func LoadConfig() *Config {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment