Commit 5158b241 authored by Geoff Simmons's avatar Geoff Simmons

Dump the controller log when the varnish_pod_template proxy test fails.

Since it has been failing consistently in the CI pipeline.
parent f8220d1c
#! /bin/bash -x
function dump_controller_log {
echo "error status $?"
local pod=( $(kubectl get pods -n kube-system -l app=varnish-ingress-controller --no-headers -o custom-columns="") )
kubectl logs -n kube-system ${pod}
MYDIR=$(dirname ${BASH_SOURCE[0]})
source ${MYDIR}/../../test/
......@@ -8,6 +14,7 @@ LOCALPORT=${LOCALPORT:-8888}
wait_until_deleted app=varnish-ingress,example!=proxy
set -e
trap dump_controller_log ERR
wait_until_ready example=proxy
wait_until_configured example=proxy
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