File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -736,13 +736,22 @@ function setupVoyagerLoadBalancer {
736
736
| bash -s -- --provider=baremetal --namespace=voyager
737
737
fi
738
738
739
- # verify Voyager controller pod is ready
740
- local ready=` kubectl -n voyager get pod | grep voyager-operator | awk ' { print $2; } ' `
741
- if [ " ${ready} " != " 1/1" ] ; then
742
- fail " Voyager Ingress Controller is not ready"
743
- fi
739
+ echo Checking voyager controller pod is ready
740
+ local maxwaitsecs=30
741
+ local mstart=` date +%s`
742
+ while : ; do
743
+ local mnow=` date +%s`
744
+ local ready=` kubectl -n voyager get pod | grep voyager-operator | awk ' { print $2; } ' `
745
+ if [ " ${ready} " = " 1/1" ] ; then
746
+ echo " Voyager Ingress Controller is ready"
747
+ break
748
+ fi
749
+ if [ $(( mnow - mstart)) -gt $(( maxwaitsecs)) ]; then
750
+ fail " The Voyager Ingress Controller is not ready."
751
+ fi
752
+ sleep 1
753
+ done
744
754
745
- # deploy Voyager Ingress resource
746
755
kubectl apply -f ${voyagerOutput}
747
756
748
757
echo Checking Voyager Ingress resource
You can’t perform that action at this time.
0 commit comments