Skip to content

Commit

Permalink
Merge pull request #392 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR - chore: changed extIP extraction logic in cicd
  • Loading branch information
UltraInstinct14 authored Sep 13, 2023
2 parents 34fd714 + b59e0bc commit 9148610
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cicd/k0s-weave/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
break
fi
echo "No external LB allocated"
Expand Down
2 changes: 1 addition & 1 deletion cicd/k3s-calico-dual-stack/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
break
fi
echo "No external LB allocated"
Expand Down
2 changes: 1 addition & 1 deletion cicd/k3s-calico/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
break
fi
echo "No external LB allocated"
Expand Down
2 changes: 1 addition & 1 deletion cicd/k3s-cilium/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
break
fi
echo "No external LB allocated"
Expand Down
2 changes: 1 addition & 1 deletion cicd/k3s-flannel/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
break
fi
echo "No external LB allocated"
Expand Down
4 changes: 2 additions & 2 deletions cicd/k3s-sctpmh-2/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
port=${strarr[4]}
break
fi
Expand Down Expand Up @@ -64,7 +64,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
port=${strarr[4]}
break
fi
Expand Down
4 changes: 2 additions & 2 deletions cicd/k3s-sctpmh/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
port=${strarr[4]}
break
fi
Expand Down Expand Up @@ -64,7 +64,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
port=${strarr[4]}
break
fi
Expand Down
2 changes: 1 addition & 1 deletion cicd/k8s-calico-incluster/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
break
fi
echo "No external LB allocated"
Expand Down
2 changes: 1 addition & 1 deletion cicd/k8s-calico-ipvs/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
break
fi
echo "No external LB allocated"
Expand Down
2 changes: 1 addition & 1 deletion cicd/k8s-calico-ubuntu22/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
break
fi
echo "No external LB allocated"
Expand Down
2 changes: 1 addition & 1 deletion cicd/k8s-calico/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
continue
fi
if [[ ${strarr[3]} != *"none"* ]]; then
extIP=${strarr[3]}
extIP="$(cut -d'-' -f2 <<<${strarr[3]})"
break
fi
echo "No external LB allocated"
Expand Down

0 comments on commit 9148610

Please sign in to comment.