File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM quay.io/fedora/fedora:34-x86_64 as builder
2
2
LABEL stage=builder
3
3
WORKDIR /build
4
4
5
- # install dependencies and go 1.16
5
+ # install dependencies and go 1.17
6
6
7
7
# copy just enough of the git repo to parse HEAD, used to record version in OLM binaries
8
8
RUN dnf update -y && dnf install -y bash make git mercurial jq wget && dnf upgrade -y
Original file line number Diff line number Diff line change @@ -14,12 +14,9 @@ echo "Using the ${TEST_ARTIFACTS_DIR} output directory"
14
14
mkdir -p " ${TEST_ARTIFACTS_DIR} "
15
15
16
16
commands=()
17
- commands+=(" get catalogsources -o yaml" )
18
- commands+=(" get subscriptions -o yaml" )
19
- commands+=(" get operatorgroups -o yaml" )
20
- commands+=(" get clusterserviceversions -o yaml" )
21
- commands+=(" get installplans -o yaml" )
22
- commands+=(" get pods -o wide" )
17
+ commands+=(" describe all" )
18
+ commands+=(" get all -o yaml" )
19
+ commands+=(" get all -o wide" )
23
20
commands+=(" get events --sort-by .lastTimestamp" )
24
21
25
22
echo " Storing the test artifact output in the ${TEST_ARTIFACTS_DIR} directory"
@@ -28,3 +25,8 @@ for command in "${commands[@]}"; do
28
25
COMMAND_OUTPUT_FILE=${TEST_ARTIFACTS_DIR} /${command// / _}
29
26
${KUBECTL} -n ${TEST_NAMESPACE} ${command} >> " ${COMMAND_OUTPUT_FILE} "
30
27
done
28
+
29
+ for pod in $( ${KUBECTL} -n ${TEST_NAMESPACE} get --no-headers pods | awk ' { print $1 }' ) ; do
30
+ echo " Collecting logs for pod: ${pod} "
31
+ ${KUBECTL} -n ${TEST_NAMESPACE} logs ${pod} >> " ${TEST_ARTIFACTS_DIR} /${pod} .log"
32
+ done
You can’t perform that action at this time.
0 commit comments