Skip to content

Commit

Permalink
remove using HTTP PROXY from environment variable (#1587)
Browse files Browse the repository at this point in the history
remove using HTTP PROXY from environment variable, matching kubectl's behavior

Signed-off-by: Aviram Hassan <[email protected]>
  • Loading branch information
aviramha authored Sep 23, 2024
1 parent c0fe0c8 commit 0fa32b8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kube-client/src/config/file_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ impl ConfigLoader {
let nonempty = |o: Option<String>| o.filter(|s| !s.is_empty());

if let Some(proxy) = nonempty(self.cluster.proxy_url.clone())
.or_else(|| nonempty(std::env::var("HTTP_PROXY").ok()))
.or_else(|| nonempty(std::env::var("http_proxy").ok()))
.or_else(|| nonempty(std::env::var("HTTPS_PROXY").ok()))
.or_else(|| nonempty(std::env::var("https_proxy").ok()))
{
Expand Down

0 comments on commit 0fa32b8

Please sign in to comment.