Skip to content

Commit

Permalink
Fix missing square brackets in curl ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyanker committed Feb 3, 2021
1 parent 136336b commit 1ca1768
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/images/install-pre-1.16.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,7 @@ checkDaemonSet(){
}
checkKubeProxy(){
healthResult=`kubectl get node -o wide | grep -v "INTERNAL-IP" | awk '{printf "curl -g -6 -sL -w %{http_code} http://%s:10256/healthz -o /dev/null | grep -v 200 \n", $6}' | bash` || true
healthResult=`kubectl get node -o wide | grep -v "INTERNAL-IP" | awk '{printf "curl -g -6 -sL -w %{http_code} http://[%s]:10256/healthz -o /dev/null | grep -v 200 \n", $6}' | bash` || true
if [ -n "$healthResult" ]; then
echo "kube-proxy's health check failed"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2136,7 +2136,7 @@ checkDeployment(){
}
checkKubeProxy(){
healthResult=`kubectl get node -o wide | grep -v "INTERNAL-IP" | awk '{printf "curl -g -6 -sL -w %{http_code} http://%s:10256/healthz -o /dev/null | grep -v 200 \n", $6}' | bash` || true
healthResult=`kubectl get node -o wide | grep -v "INTERNAL-IP" | awk '{printf "curl -g -6 -sL -w %{http_code} http://[%s]:10256/healthz -o /dev/null | grep -v 200 \n", $6}' | bash` || true
if [ -n "$healthResult" ]; then
echo "kube-proxy's health check failed"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion dist/images/kubectl-ko
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ checkDeployment(){
}

checkKubeProxy(){
healthResult=`kubectl get node -o wide | grep -v "INTERNAL-IP" | awk '{printf "curl -g -6 -sL -w %{http_code} http://%s:10256/healthz -o /dev/null | grep -v 200 \n", $6}' | bash` || true
healthResult=`kubectl get node -o wide | grep -v "INTERNAL-IP" | awk '{printf "curl -g -6 -sL -w %{http_code} http://[%s]:10256/healthz -o /dev/null | grep -v 200 \n", $6}' | bash` || true
if [ -n "$healthResult" ]; then
echo "kube-proxy's health check failed"
exit 1
Expand Down

0 comments on commit 1ca1768

Please sign in to comment.