Skip to content

Commit 4865b31

Browse files
committed
Add ServerName to tiller tlsopts.
1 parent 0aa6429 commit 4865b31

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cmd/helpers.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ func createHelmClient() helm.Interface {
3434
options := []helm.Option{helm.Host(os.Getenv("TILLER_HOST")), helm.ConnectTimeout(int64(30))}
3535

3636
if settings.TLSVerify || settings.TLSEnable {
37-
tlsopts := tlsutil.Options{KeyFile: settings.TLSKeyFile, CertFile: settings.TLSCertFile, InsecureSkipVerify: true}
37+
tlsopts := tlsutil.Options{
38+
ServerName: settings.TLSServerName,
39+
KeyFile: settings.TLSKeyFile,
40+
CertFile: settings.TLSCertFile,
41+
InsecureSkipVerify: true,
42+
}
43+
3844
if settings.TLSVerify {
3945
tlsopts.CaCertFile = settings.TLSCaCertFile
4046
tlsopts.InsecureSkipVerify = false

0 commit comments

Comments
 (0)