Skip to content

Commit

Permalink
debug: must-gather
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
  • Loading branch information
zeeke committed Sep 20, 2024
1 parent e96b67d commit d237049
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/run-e2e-conformance-virtual-ocp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ hack/deploy-setup.sh $NAMESPACE
function cluster_info {
if [[ -v TEST_REPORT_PATH ]]; then
kubectl cluster-info dump --namespaces ${NAMESPACE},${MULTUS_NAMESPACE} --output-directory "${root}/${TEST_REPORT_PATH}/cluster-info"

oc adm must-gather --dest-dir="${root}/must-gather"
tar cvaf "${root}/${TEST_REPORT_PATH}/must-gather.tar.gz" "${root}/must-gather/"
fi
}
trap cluster_info ERR
Expand Down

0 comments on commit d237049

Please sign in to comment.