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 10, 2024
1 parent c25a4f9 commit 8016581
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion hack/run-e2e-conformance-virtual-ocp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,26 @@ 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`
podman login -u serviceaccount -p ${pass:15} $registry --tls-verify=false


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

pass=${pass:8}

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

MAX_RETRIES=20
DELAY_SECONDS=10
Expand Down

0 comments on commit 8016581

Please sign in to comment.