Skip to content

Commit f2c6ae4

Browse files
Merge pull request #1995 from Phaow/add-proxy
OCPBUGS-54168: Use ProxyFromEnvironment when creating HTTP transport
2 parents 33cbfe1 + 7adf772 commit f2c6ae4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cli/admin/toppvc/persistentvolumeclaims.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ func getWithBearer(ctx context.Context, getRoute RouteGetter, namespace, name st
252252
}
253253

254254
httpTransport := &http.Transport{
255+
Proxy: http.ProxyFromEnvironment,
255256
TLSClientConfig: &tls.Config{InsecureSkipVerify: InsecureTLS},
256257
}
257258

0 commit comments

Comments
 (0)