Skip to content

Commit ee976b4

Browse files
authored
Merge pull request #297 from arangodb/feature/add-hostname-to-loadbalancer-tester
fixed getLoadBalancerIP to also handle hostnames
2 parents 73eefa3 + 0b0589d commit ee976b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/acceptance/semiautomation/helper.fish

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ function waitForUser
6464
end
6565

6666
function getLoadBalancerIP
67-
string trim -c '"' (kubectl get service $argv[1] -o=json | \
68-
jq .status.loadBalancer.ingress[0].ip)
67+
set var (kubectl get service $argv[1] -o=json | jq .status.loadBalancer.ingress[0])
68+
set key (echo $var | jq -r keys[0])
69+
echo $var | jq -r .$key
6970
end
7071

7172
function testArangoDB

0 commit comments

Comments
 (0)