Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #56 from sidmutha/insecuretls
Browse files Browse the repository at this point in the history
Client respects the InsecureSkipTLSVerify setting for a cluster in kubeConfig
  • Loading branch information
ericchiang committed Jul 20, 2017
2 parents 5803ed7 + 6c5d232 commit 6de5ba6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ func newClient(cluster Cluster, user AuthInfo, namespace string) (*Client, error
}

// See https://github.com/gtank/cryptopasta
tlsConfig := &tls.Config{MinVersion: tls.VersionTLS12}
tlsConfig := &tls.Config{
MinVersion: tls.VersionTLS12,
InsecureSkipVerify: cluster.InsecureSkipTLSVerify,
}

if len(ca) != 0 {
tlsConfig.RootCAs = x509.NewCertPool()
Expand Down

0 comments on commit 6de5ba6

Please sign in to comment.