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

Client respects the InsecureSkipTLSVerify setting for a cluster in kubeConfig #56

Merged
merged 1 commit into from
Jul 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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