From 17763a5651af2bae273e531a97c58f671ed8bec8 Mon Sep 17 00:00:00 2001 From: Alex Somesan Date: Wed, 8 May 2024 14:46:35 +0200 Subject: [PATCH] Fix typo preventing the use of KUBE_PROXY_URL env variable (#2485) * Fix typo preventing the use of KUBE_PROXY_URL provider environment variable --- .changelog/2485.txt | 3 +++ manifest/provider/configure.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/2485.txt diff --git a/.changelog/2485.txt b/.changelog/2485.txt new file mode 100644 index 0000000000..3447f3542d --- /dev/null +++ b/.changelog/2485.txt @@ -0,0 +1,3 @@ +```release-note:bug +`kubernetes_manifest`: fix issue preventing KUBE_PROXY_URL environment variable from being used in client configuration (#1733) +``` \ No newline at end of file diff --git a/manifest/provider/configure.go b/manifest/provider/configure.go index db166fcb2c..9210e2fab9 100644 --- a/manifest/provider/configure.go +++ b/manifest/provider/configure.go @@ -523,7 +523,7 @@ func (s *RawProviderServer) ConfigureProvider(ctx context.Context, req *tfprotov } overrides.ClusterDefaults.ProxyURL = proxyURL } - if proxyUrl, ok := os.LookupEnv("KUBE_PROXY_URL"); ok && proxyUrl != "" { + if proxyURL, ok := os.LookupEnv("KUBE_PROXY_URL"); ok && proxyURL != "" { overrides.ClusterDefaults.ProxyURL = proxyURL }