Skip to content

Commit

Permalink
Merge pull request #1694 from flant/fix-openshift-root-ca
Browse files Browse the repository at this point in the history
Fix OpenShift connector rootCA option
  • Loading branch information
sagikazarmark authored May 12, 2020
2 parents ba723ca + 521aa08 commit 709d416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connector/openshift/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func newHTTPClient(insecureCA bool, rootCA string) (*http.Client, error) {
if insecureCA {
tlsConfig = tls.Config{InsecureSkipVerify: true}
} else if rootCA != "" {
tlsConfig := tls.Config{RootCAs: x509.NewCertPool()}
tlsConfig = tls.Config{RootCAs: x509.NewCertPool()}
rootCABytes, err := ioutil.ReadFile(rootCA)
if err != nil {
return nil, fmt.Errorf("failed to read root-ca: %v", err)
Expand Down

0 comments on commit 709d416

Please sign in to comment.