Skip to content

Commit

Permalink
Fix Kube proxies unset (consider upper case as well)
Browse files Browse the repository at this point in the history
(cherry picked from commit 79ada02)
  • Loading branch information
sidoruka committed Oct 28, 2024
1 parent 0ba9460 commit 8e1d95a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion workflows/pipe-common/shell/kube_setup_master
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ bkp_http_proxy="$http_proxy"
bkp_https_proxy="$https_proxy"
bkp_no_proxy="$no_proxy"
if [ "$CP_KUBE_KEEP_KUBEADM_PROXIES" != "1" ]; then
unset http_proxy https_proxy no_proxy
unset http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY
fi

######################################
Expand Down
2 changes: 1 addition & 1 deletion workflows/pipe-common/shell/kube_setup_worker
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ systemctl start kubepods-besteffort.slice
systemctl start kubepods-burstable.slice

# Removing the proxies to connect to the master directly
unset http_proxy https_proxy no_proxy
unset http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY

kubeadm join --token $CP_CAP_KUBE_MASTER_TOKEN $_kube_master_ip:$CP_CAP_KUBE_MASTER_API_PORT --discovery-token-unsafe-skip-ca-verification --ignore-preflight-errors all
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 8e1d95a

Please sign in to comment.