Skip to content

Commit

Permalink
debug log for pod describe
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekr-splunk committed Feb 29, 2024
1 parent 232316e commit fdd1621
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit fdd1621

Please sign in to comment.