Skip to content

Commit

Permalink
DO NOT MERGE
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Panattoni <[email protected]>
  • Loading branch information
zeeke committed Jul 9, 2024
1 parent c25a4f9 commit d623a14
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions hack/run-e2e-conformance-virtual-ocp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,23 @@ echo ${auth} > registry-login.conf
internal_registry="image-registry.openshift-image-registry.svc:5000"
pass=$( jq .\"image-registry.openshift-image-registry.svc:5000\".auth registry-login.conf )
pass=`echo ${pass:1:-1} | base64 -d`


function debug_DNM {
if [[ -v TEST_REPORT_PATH ]]; then
mkdir -p "${root}/${TEST_REPORT_PATH}"
oc -n ${NAMESPACE} get sa -o yaml > "${root}/${TEST_REPORT_PATH}/serviceaccounts.yaml"
oc -n ${NAMESPACE} get secret -o yaml > "${root}/${TEST_REPORT_PATH}/secrets.yaml"

oc adm must-gather --dest-dir ./mg
tar czf "${root}/${TEST_REPORT_PATH}/must-gather.tar.gz" ./mg

cp registry-login.conf "${root}/${TEST_REPORT_PATH}/registry-login.conf"
echo $pass > "${root}/${TEST_REPORT_PATH}/pass"
fi
}
trap debug_DNM ERR

podman login -u serviceaccount -p ${pass:15} $registry --tls-verify=false

MAX_RETRIES=20
Expand Down

0 comments on commit d623a14

Please sign in to comment.