Skip to content

Commit

Permalink
feat: add http proxy support in http client
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfm committed Nov 21, 2023
1 parent d548f6b commit 8a8852a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ func main() {

var onClusterUpdate, onClusterDelete saas.ClusterHook
var onClusterScanUpdate, onClusterScanDelete saas.ClusterScanHook
client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyFromEnvironment}}
if saasWorkspaceID != "" {
saasClient, err := saas.NewClient(saasServer, version, saasWorkspaceID, http.DefaultClient)
saasClient, err := saas.NewClient(saasServer, version, saasWorkspaceID, client)
if err != nil {
setupLog.Error(err, "unable to create SaaS client", "workspaceID", saasWorkspaceID)
os.Exit(1)
Expand Down

0 comments on commit 8a8852a

Please sign in to comment.