File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
src/integration-tests/bash Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ function setupVoyagerLoadBalancer {
718
718
local mnow=` date +%s`
719
719
local vdep=` kubectl get ingresses.voyager.appscode.com -n ${namespace} | grep ${domainUID} -voyager | wc | awk ' { print $1; } ' `
720
720
if [ " $vdep " = " 1" ]; then
721
- echo ' The Voyager Ingress resource ${domainUID}-voyager is created successfully.'
721
+ echo " The Voyager Ingress resource ${domainUID} -voyager is created successfully."
722
722
break
723
723
fi
724
724
if [ $(( mnow - mstart)) -gt $(( maxwaitsecs)) ]; then
@@ -734,7 +734,7 @@ function setupVoyagerLoadBalancer {
734
734
local mnow=` date +%s`
735
735
local st=` kubectl get pod -n ${namespace} | grep ^voyager-${domainUID} -voyager- | awk ' { print $3; } ' `
736
736
if [ " $st " = " Running" ]; then
737
- echo ' The HAProxy pod for Voyaer Ingress ${domainUID}-voyager is created successfully.'
737
+ echo " The HAProxy pod for Voyaer Ingress ${domainUID} -voyager is created successfully."
738
738
break
739
739
fi
740
740
if [ $(( mnow - mstart)) -gt $(( maxwaitsecs)) ]; then
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ metadata:
10
10
annotations :
11
11
ingress.appscode.com/type : ' NodePort'
12
12
ingress.appscode.com/stats : ' true'
13
+ ingress.appscode.com/affinity : ' cookie'
13
14
spec :
14
15
rules :
15
- - host : %DOMAIN_UID%.%CLUSTER_NAME%
16
+ - host : ' * '
16
17
http :
17
18
nodePort : ' %LOAD_BALANCER_WEB_PORT%'
18
19
paths :
Original file line number Diff line number Diff line change @@ -65,9 +65,10 @@ metadata:
65
65
annotations :
66
66
ingress.appscode.com/type : ' NodePort'
67
67
ingress.appscode.com/stats : ' true'
68
+ ingress.appscode.com/affinity : ' cookie'
68
69
spec :
69
70
rules :
70
- - host : domain1.cluster-1
71
+ - host : ' * '
71
72
http :
72
73
nodePort : ' 30305'
73
74
paths :
Original file line number Diff line number Diff line change @@ -1161,12 +1161,11 @@ function verify_webapp_load_balancing {
1161
1161
local max_count=30
1162
1162
local wait_time=6
1163
1163
local count=0
1164
- local vheader=" host: $DOMAIN_UID .$WL_CLUSTER_NAME " # this is only needed for voyager but it does no harm to traefik etc
1165
1164
1166
1165
while [ " ${HTTP_RESPONSE} " != " 200" -a $count -lt $max_count ] ; do
1167
1166
local count=` expr $count + 1`
1168
1167
echo " NO_DATA" > $CURL_RESPONSE_BODY
1169
- local HTTP_RESPONSE=$( eval " curl --silent --show-error -H ' ${vheader} ' - -noproxy ${NODEPORT_HOST} ${TEST_APP_URL} \
1168
+ local HTTP_RESPONSE=$( eval " curl --silent --show-error --noproxy ${NODEPORT_HOST} ${TEST_APP_URL} \
1170
1169
--write-out '%{http_code}' \
1171
1170
-o ${CURL_RESPONSE_BODY} " \
1172
1171
)
You can’t perform that action at this time.
0 commit comments