From fdd1621586c718df89782155c0cc452ce828ffe0 Mon Sep 17 00:00:00 2001 From: vivekr-splunk Date: Thu, 29 Feb 2024 14:52:53 -0800 Subject: [PATCH] debug log for pod describe --- test/run-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/run-tests.sh b/test/run-tests.sh index 7f72368d9..81b18a0cc 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -72,11 +72,11 @@ elif [ "${CLUSTER_WIDE}" != "true" ]; then else echo "Installing enterprise operator from ${PRIVATE_SPLUNK_OPERATOR_IMAGE}..." make deploy IMG=${PRIVATE_SPLUNK_OPERATOR_IMAGE} SPLUNK_ENTERPRISE_IMAGE=${PRIVATE_SPLUNK_ENTERPRISE_IMAGE} WATCH_NAMESPACE="" - kubectl describe pod -n splunk-operator fi if [ $? -ne 0 ]; then echo "Unable to install the operator. Exiting..." + kubectl describe pod -n splunk-operator exit 1 fi @@ -88,6 +88,7 @@ if [ "${CLUSTER_WIDE}" == "true" ]; then kubectl wait --for=condition=ready pod -l control-plane=controller-manager --timeout=600s -n splunk-operator if [ $? -ne 0 ]; then echo "Operator installation not ready..." + kubectl describe pod -n splunk-operator exit 1 fi fi