Skip to content

Commit

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

Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>
  • Loading branch information
aviramha committed Sep 23, 2024
1 parent c0fe0c8 commit 08fda05
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 08fda05

Please sign in to comment.