File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 42
42
43
43
echo " Saving the dump of the pods logs in the artifacts directory"
44
44
oc get pods -o yaml -n ${ODHPROJECT} > ${ARTIFACT_DIR} /${ODHPROJECT} .pods.yaml
45
+ oc get pods -o yaml -n data-science-pipelines-test > ${ARTIFACT_DIR} /data-science-pipelines-test.pods.yaml
45
46
oc get pods -o yaml -n openshift-operators > ${ARTIFACT_DIR} /openshift-operators.pods.yaml
46
47
echo " Saving the events in the artifacts directory"
47
48
oc get events --sort-by=' {.lastTimestamp}' > ${ARTIFACT_DIR} /${ODHPROJECT} .events.txt
49
+ oc get events --sort-by=' {.lastTimestamp}' -n data-science-pipelines-test > ${ARTIFACT_DIR} /data-science-pipelines-test.events.txt
48
50
echo " Saving the logs from the opendatahub-operator pod in the artifacts directory"
49
51
oc logs -n openshift-operators $( oc get pods -n openshift-operators -l name=opendatahub-operator -o jsonpath=" {$.items[*].metadata.name}" ) > ${ARTIFACT_DIR} /opendatahub-operator.log 2> /dev/null || echo " No logs for openshift-operators/opendatahub-operator"
52
+ echo " Saving the logs from the Data Science Pipelines Operator pods in the artifacts directory"
53
+ for pod in $( oc get pods -n opendatahub -l control-plane=controller-manager -o jsonpath=" {$.items[*].metadata.name}" ) ;
54
+ do
55
+ oc logs -n opendatahub $pod > ${ARTIFACT_DIR} /$pod .log;
56
+ done
50
57
51
58
if [ " $success " -ne 1 ]; then
52
59
exit 1
You can’t perform that action at this time.
0 commit comments