Commit aef27e6a authored by Lin Jen-Shin's avatar Lin Jen-Shin

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
parents 76d793dc dccf643c
...@@ -52,7 +52,7 @@ function delete() { ...@@ -52,7 +52,7 @@ function delete() {
function get_pod() { function get_pod() {
local app_name="${1}" local app_name="${1}"
local status="${2-Running}" 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 "Waiting till '${app_name}' pod is ready" true
echoinfo "Running '${get_pod_cmd}'" echoinfo "Running '${get_pod_cmd}'"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment