Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Use kubectl get foo/name not get foo name
Browse files Browse the repository at this point in the history
  • Loading branch information
fejta committed Oct 18, 2018
1 parent 590f3b4 commit 7a594f5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
6 changes: 3 additions & 3 deletions examples/hellogrpc/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ if [[ -z "${1:-}" ]]; then
fi

get_lb_ip() {
kubectl --namespace=${USER} get service hello-grpc-staging \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}'
kubectl --namespace=${USER} get service/hello-grpc-staging \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}'
}

# Ensure there is an ip address for hell-grpc-staging:50051
Expand Down Expand Up @@ -71,8 +71,8 @@ while [[ -n "${1:-}" ]]; do
LANGUAGE="$1"
shift

create
trap "delete" EXIT
create
sleep 25
check_msg ""

Expand Down
23 changes: 11 additions & 12 deletions examples/hellohttp/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ if [[ -z "${1:-}" ]]; then
fi

get_lb_ip() {
kubectl --namespace=${USER} get service hello-http-staging \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}'
kubectl --namespace=${USER} get service/hello-http-staging \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}'
}

# Ensure there is an ip address for hello-http-staging:8080
Expand Down Expand Up @@ -54,15 +54,14 @@ delete() {
}

check_bad_substitution() {
echo Checking a bad substitution
if ! bazel run examples/hellohttp:error-on-run;
then
echo "Success, substitution failed."
return
else
echo "Bad substitution should fail!"
exit 1
fi
echo Checking a bad substitution
if ! bazel run examples/hellohttp:error-on-run; then
echo "Success, substitution failed."
return 0
else
echo "Bad substitution should fail!"
exit 1
fi
}

check_no_images_resolution() {
Expand All @@ -83,7 +82,7 @@ while [[ -n "${1:-}" ]]; do
LANGUAGE="$1"
shift

apply
apply # apply will handle already created
trap "delete" EXIT
sleep 25
check_msg ""
Expand Down
6 changes: 3 additions & 3 deletions examples/todocontroller/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ set -e
LANGUAGE="$1"

function get_lb_ip() {
kubectl --namespace=${USER} get service hello-grpc-staging \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}'
kubectl --namespace=${USER} get service/hello-grpc-staging \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}'
}

function create() {
Expand Down Expand Up @@ -76,8 +76,8 @@ function check_reverse_delete_k8s_objects() {
check_reverse_delete_k8s_object
check_reverse_delete_k8s_objects

create
trap "delete" EXIT
create
sleep 25
check_msg

Expand Down

0 comments on commit 7a594f5

Please sign in to comment.