Skip to content

Commit

Permalink
fixed getLoadBalancerIP to also handle hostnames
Browse files Browse the repository at this point in the history
  • Loading branch information
kvahed committed Nov 6, 2018
1 parent 5a6beb1 commit 0b0589d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/acceptance/semiautomation/helper.fish
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ function waitForUser
end

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

function testArangoDB
Expand Down

0 comments on commit 0b0589d

Please sign in to comment.