Skip to content

Commit

Permalink
Add ServerName to tiller tlsopts.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgroschupp committed Jan 10, 2019
1 parent 0aa6429 commit 4865b31
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ func createHelmClient() helm.Interface {
options := []helm.Option{helm.Host(os.Getenv("TILLER_HOST")), helm.ConnectTimeout(int64(30))}

if settings.TLSVerify || settings.TLSEnable {
tlsopts := tlsutil.Options{KeyFile: settings.TLSKeyFile, CertFile: settings.TLSCertFile, InsecureSkipVerify: true}
tlsopts := tlsutil.Options{
ServerName: settings.TLSServerName,
KeyFile: settings.TLSKeyFile,
CertFile: settings.TLSCertFile,
InsecureSkipVerify: true,
}

if settings.TLSVerify {
tlsopts.CaCertFile = settings.TLSCaCertFile
tlsopts.InsecureSkipVerify = false
Expand Down

0 comments on commit 4865b31

Please sign in to comment.