diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-07-24 09:03:11 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-07-24 09:03:11 +0000 |
commit | aef27e6acce996c4d5c47d10ff0dad6d9b9095e6 (patch) | |
tree | 38abbf5060ce1fbaf8cb6126f79807cd3fc5344a /scripts | |
parent | 76d793dc0175e3cfd63e7c599182756290dae240 (diff) | |
parent | dccf643c42f8887844ab6e88f21d161d66c893e0 (diff) | |
download | gitlab-ce-aef27e6acce996c4d5c47d10ff0dad6d9b9095e6.tar.gz |
Merge branch '64996-fix-review-app-debugging' into 'master'
Resolve "Review App debugging sometimes fail because multiple Unicorn pods exist"
Closes #64996
See merge request gitlab-org/gitlab-ce!31058
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/review_apps/review-apps.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/review_apps/review-apps.sh b/scripts/review_apps/review-apps.sh index bc47884ee45..363ab2c6540 100755 --- a/scripts/review_apps/review-apps.sh +++ b/scripts/review_apps/review-apps.sh @@ -52,7 +52,7 @@ function delete() { function get_pod() { local app_name="${1}" local status="${2-Running}" - get_pod_cmd="kubectl get pods -n ${KUBE_NAMESPACE} --field-selector=status.phase=${status} -lapp=${app_name},release=${CI_ENVIRONMENT_SLUG} --no-headers -o=custom-columns=NAME:.metadata.name" + get_pod_cmd="kubectl get pods -n ${KUBE_NAMESPACE} --field-selector=status.phase=${status} -lapp=${app_name},release=${CI_ENVIRONMENT_SLUG} --no-headers -o=custom-columns=NAME:.metadata.name | tail -n 1" echoinfo "Waiting till '${app_name}' pod is ready" true echoinfo "Running '${get_pod_cmd}'" |