Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always mirror with --keep-manifest-list=true #1648

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 1 addition & 8 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,8 @@ function setup_legacy_release_mirror {
mkdir $REGISTRY_DIR
fi

# Explicitly request that manifest lists arn't unpacked (causing digests of the images to change)
# Not supported by oc <= 4.10
OCEXTRAPARAMS=
if echo -e "4.11\n$(oc version -o json | jq .releaseClientVersion -r)" | sort -V -C ; then
OCEXTRAPARAMS="--keep-manifest-list=true"
fi

oc adm release mirror \
--insecure=true $OCEXTRAPARAMS \
--insecure=true --keep-manifest-list=true \
-a ${PULL_SECRET_FILE} \
--from ${OPENSHIFT_RELEASE_IMAGE} \
--to-release-image ${LOCAL_REGISTRY_DNS_NAME}:${LOCAL_REGISTRY_PORT}/localimages/local-release-image:${OPENSHIFT_RELEASE_TAG} \
Expand Down