summaryrefslogtreecommitdiff
path: root/scripts/review_apps
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-07 12:06:18 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-07 12:06:18 +0000
commit185f428fa5e6123ffa0f29e307523da138e7b028 (patch)
tree1d5bb1d4700c0953aed2ad0e5d3515cc7935e550 /scripts/review_apps
parentab2382923e7a864a3fa27fdf8eeb9b21893b9147 (diff)
downloadgitlab-ce-185f428fa5e6123ffa0f29e307523da138e7b028.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/review_apps')
-rwxr-xr-xscripts/review_apps/review-apps.sh24
1 files changed, 6 insertions, 18 deletions
diff --git a/scripts/review_apps/review-apps.sh b/scripts/review_apps/review-apps.sh
index a4fb4749720..4c44a32c7dd 100755
--- a/scripts/review_apps/review-apps.sh
+++ b/scripts/review_apps/review-apps.sh
@@ -255,25 +255,13 @@ EOF
}
function display_deployment_debug() {
- kubectl get pods -n "$KUBE_NAMESPACE" -lrelease=${CI_ENVIRONMENT_SLUG}
+ # Get all pods that are not ready (this will return completed pods for minio and migrations jobs)
+ echoinfo "Unready Pods for release ${CI_ENVIRONMENT_SLUG}"
+ kubectl get pods -n "$KUBE_NAMESPACE" -lrelease=${CI_ENVIRONMENT_SLUG} --field-selector=status.phase!=Running
- migrations_pod=$(get_pod "migrations");
- if [ -z "${migrations_pod}" ]; then
- echoerr "Migrations pod not found."
- else
- echoinfo "Logs tail of the ${migrations_pod} pod..."
-
- kubectl logs -n "$KUBE_NAMESPACE" "${migrations_pod}" | sed "s/${REVIEW_APPS_ROOT_PASSWORD}/[REDACTED]/g"
- fi
-
- unicorn_pod=$(get_pod "unicorn");
- if [ -z "${unicorn_pod}" ]; then
- echoerr "Unicorn pod not found."
- else
- echoinfo "Logs tail of the ${unicorn_pod} pod..."
-
- kubectl logs -n "$KUBE_NAMESPACE" -c unicorn "${unicorn_pod}" | sed "s/${REVIEW_APPS_ROOT_PASSWORD}/[REDACTED]/g"
- fi
+ # Get all non-completed jobs
+ echoinfo "Unsuccessful Jobs for release ${CI_ENVIRONMENT_SLUG}"
+ kubectl get jobs -n "$KUBE_NAMESPACE" -lrelease=${CI_ENVIRONMENT_SLUG} --field-selector=status.successful!=1
}
function add_license() {