From 08f2ed317ff553ef056322653990c6c3fcc76b16 Mon Sep 17 00:00:00 2001 From: ivinokur Date: Mon, 8 Apr 2024 15:30:25 +0300 Subject: [PATCH] fix: Ignore certificate check on fetch devworkspace template Signed-off-by: ivinokur --- controllers/workspace/http.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/controllers/workspace/http.go b/controllers/workspace/http.go index 32f317225..b1fedaed2 100644 --- a/controllers/workspace/http.go +++ b/controllers/workspace/http.go @@ -29,11 +29,13 @@ var ( ) func setupHttpClients() { - transport := http.DefaultTransport.(*http.Transport).Clone() - healthCheckTransport := http.DefaultTransport.(*http.Transport).Clone() - healthCheckTransport.TLSClientConfig = &tls.Config{ + tlsConfig := &tls.Config{ InsecureSkipVerify: true, } + transport := http.DefaultTransport.(*http.Transport).Clone() + transport.TLSClientConfig = tlsConfig + healthCheckTransport := http.DefaultTransport.(*http.Transport).Clone() + healthCheckTransport.TLSClientConfig = tlsConfig globalConfig := config.GetGlobalConfig()