Skip to content

Commit 7adf772

Browse files
committed
Fix: Use ProxyFromEnvironment when creating HTTP transport
1 parent 33cbfe1 commit 7adf772

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)