Skip to content

Commit

Permalink
fix: Ignore certificate check on fetch devworkspace template
Browse files Browse the repository at this point in the history
Signed-off-by: ivinokur <[email protected]>
  • Loading branch information
vinokurig committed Apr 8, 2024
1 parent adc8b5a commit 08f2ed3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions controllers/workspace/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 08f2ed3

Please sign in to comment.