Skip to content

Commit 46b5482

Browse files
author
Tom Barnes
committed
Fix integration test operator log capture after a failure (so that it's able to find the operator pod).
1 parent 9e2990e commit 46b5482

File tree

1 file changed

+3
-3
lines changed
  • src/integration-tests/bash

1 file changed

+3
-3
lines changed

src/integration-tests/bash/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ function call_operator_rest {
13921392

13931393
trace "Calling some operator REST APIs via ${REST_ADDR}/${URL_TAIL}"
13941394

1395-
#pod=`kubectl get pod -n $OPERATOR_NS | grep $OPERATOR_NS | awk '{ print $1 }'`
1395+
#pod=`kubectl get pod -n $OPERATOR_NS --show-labels=true | grep $OPERATOR_NS | awk '{ print $1 }'`
13961396
#kubectl logs $pod -n $OPERATOR_NS > "${OPERATOR_TMP_DIR}/operator.pre.rest.log"
13971397

13981398
# turn off all of the https proxying so that curl will work
@@ -1950,7 +1950,7 @@ function verify_service_and_pod_created {
19501950
done
19511951

19521952
if [ "${srv_count:=Error}" != "1" ]; then
1953-
local pod=`kubectl get pod -n $OPERATOR_NS | grep $OPERATOR_NS | awk '{ print $1 }'`
1953+
local pod=`kubectl get pod -n $OPERATOR_NS --show-labels=true | grep $OPERATOR_NS | awk '{ print $1 }'`
19541954
local debuglog="${OPERATOR_TMP_DIR}/verify_domain_debugging.log"
19551955
kubectl logs $pod -n $OPERATOR_NS > "${debuglog}"
19561956
if [ -f ${debuglog} ] ; then
@@ -1975,7 +1975,7 @@ function verify_service_and_pod_created {
19751975
fi
19761976

19771977
if [ "${srv_count:=Error}" != "1" ]; then
1978-
local pod=`kubectl get pod -n $OPERATOR_NS | grep $OPERATOR_NS | awk '{ print $1 }'`
1978+
local pod=`kubectl get pod -n $OPERATOR_NS --show-labels=true | grep $OPERATOR_NS | awk '{ print $1 }'`
19791979
local debuglog="${OPERATOR_TMP_DIR}/verify_domain_debugging.log"
19801980
kubectl logs $pod -n $OPERATOR_NS > "${debuglog}"
19811981
if [ -f ${debuglog} ] ; then

0 commit comments

Comments
 (0)