Skip to content

Commit

Permalink
Stage CNI (and harvester) images if avaliable for airgap (#6275)
Browse files Browse the repository at this point in the history
* Stage CNI images if avaliable for airgap

Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola authored Jul 22, 2024
1 parent ba0257c commit 26d7649
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,13 @@ install_airgap_tarball() {
info "decompressing airgap tarball to ${INSTALL_RKE2_AGENT_IMAGES_DIR}"
gzip -dc "${TMP_AIRGAP_TARBALL}" > "${INSTALL_RKE2_AGENT_IMAGES_DIR}/rke2-images.${SUFFIX}.tar"
fi
# Search for and install additional rke2 images
for IMAGE in "${INSTALL_RKE2_ARTIFACT_PATH}"/rke2-images-*."${SUFFIX}"*; do
if [ -f "${IMAGE}" ]; then
info "Installing airgap image from ${IMAGE}"
cp "${IMAGE}" "${INSTALL_RKE2_AGENT_IMAGES_DIR}"
fi
done
}

# install_dev_rpm orchestrates the installation of RKE2 unsigned development rpms
Expand Down

0 comments on commit 26d7649

Please sign in to comment.