Skip to content

Commit 076740c

Browse files
authored
Merge pull request #1067 from jcantrill/check_log_ns_better
check logging namespace for actual resources
2 parents debca09 + d534d9d commit 076740c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/testing/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ source "$(dirname "${BASH_SOURCE[0]}" )/../lib/init.sh"
2626
source "${OS_O_A_L_DIR}/hack/testing/util.sh"
2727

2828
LOGGING_NS=openshift-logging
29-
if oc get project logging -o name > /dev/null ; then
29+
if oc get project logging -o name > /dev/null && [ $(oc get dc -n logging -o name | wc -l) -gt 0 ] ; then
3030
LOGGING_NS=logging
3131
fi
3232
export LOGGING_NS

0 commit comments

Comments
 (0)