Skip to content

Commit

Permalink
Added support for ETCD3_ENABLE_TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
thrawn01 committed Aug 24, 2018
1 parent b81e0ae commit 122660f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etcdutil/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ func NewEtcdConfig(cfg *etcd.Config) (*etcd.Config, error) {
cfg.TLS.InsecureSkipVerify = true
}

// Enable TLS with no additional configuration
if os.Getenv("ETCD3_ENABLE_TLS") != "" {
holster.SetDefault(&cfg.TLS, &tls.Config{})
}

return cfg, nil
}

Expand Down

0 comments on commit 122660f

Please sign in to comment.