From 97e3e14b85e15fc14a65aa33184a3dd2f96c87fc Mon Sep 17 00:00:00 2001 From: Eric Weber Date: Wed, 7 Feb 2024 16:27:03 -0600 Subject: [PATCH] Fix automated mirroring of livenessprobe Longhorn 7428 Signed-off-by: Eric Weber --- mirror_csi_images/scripts/publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirror_csi_images/scripts/publish.sh b/mirror_csi_images/scripts/publish.sh index 4d918fb099..8ff6bf755c 100755 --- a/mirror_csi_images/scripts/publish.sh +++ b/mirror_csi_images/scripts/publish.sh @@ -9,7 +9,7 @@ if [[ -n "${LONGHORN_IMAGES_FILE_URL}" ]]; then wget "${LONGHORN_IMAGES_FILE_URL}" -O "${LONGHORN_IMAGES_FILE}" while read -r LINE; do - if [[ "${LINE}" =~ "csi-" ]]; then + if [[ "${LINE}" =~ csi-|livenessprobe ]]; then CSI_IMAGE=$(echo "${LINE}" | sed -e "s/longhornio\///g") IFS=: read -ra IMAGE_TAG_PAIR <<< "${CSI_IMAGE}" echo "registry.k8s.io/sig-storage/${IMAGE_TAG_PAIR[0]}" "longhornio/${IMAGE_TAG_PAIR[0]}" "${IMAGE_TAG_PAIR[1]}" >> "${INFILE}" @@ -23,7 +23,7 @@ else IFS=, read -ra CSI_IMAGES_ARR <<< "${CSI_IMAGES}" for CSI_IMAGE in "${CSI_IMAGES_ARR[@]}"; do IFS=: read -ra IMAGE_TAG_PAIR <<< "$CSI_IMAGE" - if [[ "${CSI_IMAGE}" =~ "csi-" ]]; then + if [[ "${CSI_IMAGE}" =~ csi-|livenessprobe ]]; then echo "registry.k8s.io/sig-storage/${IMAGE_TAG_PAIR[0]}" "longhornio/${IMAGE_TAG_PAIR[0]}" "${IMAGE_TAG_PAIR[1]}" >> "${INFILE}" elif [[ "${CSI_IMAGE}" =~ "support-bundle-kit" ]]; then echo "rancher/${IMAGE_TAG_PAIR[0]}" "longhornio/${IMAGE_TAG_PAIR[0]}" "${IMAGE_TAG_PAIR[1]}" >> "${INFILE}"