Commit 723ea025 authored by Kyle Wiebers's avatar Kyle Wiebers

Update display_deployment_debug to output relevant info

This should output better information in the console
output which can be used to collect and report on
parent 2c163449
...@@ -255,25 +255,13 @@ EOF ...@@ -255,25 +255,13 @@ EOF
} }
function display_deployment_debug() { 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"); # Get all non-completed jobs
if [ -z "${migrations_pod}" ]; then echoinfo "Unsuccessful Jobs for release ${CI_ENVIRONMENT_SLUG}"
echoerr "Migrations pod not found." kubectl get jobs -n "$KUBE_NAMESPACE" -lrelease=${CI_ENVIRONMENT_SLUG} --field-selector=status.successful!=1
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
} }
function add_license() { function add_license() {
......
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