Skip to content

Commit

Permalink
Fix automated mirroring of livenessprobe
Browse files Browse the repository at this point in the history
Longhorn 7428

Signed-off-by: Eric Weber <[email protected]>
  • Loading branch information
ejweber committed Feb 7, 2024
1 parent b601a89 commit 97e3e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mirror_csi_images/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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}"
Expand Down

0 comments on commit 97e3e14

Please sign in to comment.