From 26d7649347e20ca4e84e9b48a3e52dd97faebc3c Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Mon, 22 Jul 2024 09:34:38 -0700 Subject: [PATCH] Stage CNI (and harvester) images if avaliable for airgap (#6275) * Stage CNI images if avaliable for airgap Signed-off-by: Derek Nola --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index a1ea82aa66..0643a5a763 100755 --- a/install.sh +++ b/install.sh @@ -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