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

commit

parent 0f861042
......@@ -58,7 +58,7 @@ func NewRootCommand() *cobra.Command {
client := versioned.NewForConfigOrDie(&rest.Config{
Host: regionConfig.ApiServer,
TLSClientConfig: rest.TLSClientConfig{
Insecure: false,
Insecure: regionConfig.Insecure,
CAData: caData,
CertData: clientCertData,
KeyData: clientKeyData,
......
......@@ -36,6 +36,7 @@ type RegionConfig struct {
Token string `yaml:"token"`
ClientCertData string `yaml:"client_cert_data"`
ClientKeyData string `yaml:"client_key_data"`
Insecure bool `yaml:"insecure"`
}
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