From 329422106426c9fa4f797950ebc9d83617e4b191 Mon Sep 17 00:00:00 2001 From: Abdul Qadeer Date: Thu, 10 Feb 2022 12:03:38 -0800 Subject: [PATCH] Update option for SignalFx --- pkg/watcher/internal/metricsprovider/signalfx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/watcher/internal/metricsprovider/signalfx.go b/pkg/watcher/internal/metricsprovider/signalfx.go index 5c27e24..c67a680 100644 --- a/pkg/watcher/internal/metricsprovider/signalfx.go +++ b/pkg/watcher/internal/metricsprovider/signalfx.go @@ -65,7 +65,7 @@ func NewSignalFxClient(opts watcher.MetricsProviderOpts) (watcher.MetricsProvide return nil, fmt.Errorf("metric provider name should be %v, found %v", watcher.SignalFxClientName, opts.Name) } tlsConfig := &http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // TODO(aqadeer): Figure out a secure way to let users add SSL certs + TLSClientConfig: &tls.Config{InsecureSkipVerify: opts.InsecureSkipVerify}, // TODO(aqadeer): Figure out a secure way to let users add SSL certs } hostNameSuffix, _ := os.LookupEnv(signalFxHostNameSuffixKey) clusterName, _ := os.LookupEnv(signalFxClusterName)