Skip to content

Commit

Permalink
optional pull-secret for extracting lvms bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
pmtk committed Feb 9, 2023
1 parent f4dd4a8 commit cc3c18c
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
@@ -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" \
|| {

0 comments on commit cc3c18c

Please sign in to comment.