Skip to content

Commit

Permalink
Add timeout to health checks to avoid very long reconciles
Browse files Browse the repository at this point in the history
Signed-off-by: Angel Misevski <[email protected]>
  • Loading branch information
amisevsk committed Oct 18, 2023
1 parent a6a48a8 commit b9044e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/workspace/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"crypto/tls"
"net/http"
"net/url"
"time"

"github.com/devfile/devworkspace-operator/pkg/config"
"golang.org/x/net/http/httpproxy"
Expand Down Expand Up @@ -60,5 +61,6 @@ func setupHttpClients() {
}
healthCheckHttpClient = &http.Client{
Transport: healthCheckTransport,
Timeout: 500 * time.Millisecond,
}
}

0 comments on commit b9044e1

Please sign in to comment.