Skip to content

Commit

Permalink
Merge pull request #1345 from pmtk/rebase/lvms/optional-pull-secret
Browse files Browse the repository at this point in the history
NO-ISSUE: Optional pull-secret for extracting lvms bundle
  • Loading branch information
openshift-merge-robot authored Feb 9, 2023
2 parents 0f3a160 + cc3c18c commit 142a3a6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/auto-rebase/rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,19 @@ download_lvms_operator_bundle_manifest(){
title 'downloading LVMS operator bundles'
local LVMS_STAGING="${STAGING_DIR}/lvms"

authentication=""
if [ -f "${PULL_SECRET_FILE}" ]; then
authentication="--registry-config ${PULL_SECRET_FILE}"
else
>&2 echo "Warning: no pull secret found at ${PULL_SECRET_FILE}"
fi

for arch in ${ARCHS[@]}; do
mkdir -p "$LVMS_STAGING/$arch"
pushd "$LVMS_STAGING/$arch" || return 1
title "extracting lvms operator bundle for \"$arch\" architecture"
oc image extract \
--registry-config "$PULL_SECRET_FILE" \
${authentication} \
--path /manifests/:. "$bundle_manifest" \
--filter-by-os "$arch" \
|| {
Expand Down

0 comments on commit 142a3a6

Please sign in to comment.