Skip to content

Commit

Permalink
In upgrade path bump eventrouter to v0.3.2
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Wang <jian.wang@suse.com>
  • Loading branch information
w13915984028 committed Sep 24, 2024
1 parent 295d28c commit 0bde441
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package/upgrade/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ upgrade_addon_rancher_logging_with_patch_eventrouter_image()
if [ $EXIT_CODE != 0 ]; then
echo "eventrouter is not found, need not patch"
else
if [[ "rancher/harvester-eventrouter:v0.3.1" > $tag ]]; then
echo "eventrouter image is $tag, will patch to v0.3.1"
if [[ "rancher/harvester-eventrouter:v0.3.2" > $tag ]]; then
echo "eventrouter image is $tag, will patch to v0.3.2"
fixeventrouter=true
else
echo "eventrouter image is updated, need not patch"
Expand All @@ -536,7 +536,7 @@ upgrade_addon_rancher_logging_with_patch_eventrouter_image()
cat $valuesfile

if [[ $fixeventrouter == true ]]; then
yq -e '.eventTailer.workloadOverrides.containers[0].image = "rancher/harvester-eventrouter:v0.3.1"' -i $valuesfile
yq -e '.eventTailer.workloadOverrides.containers[0].image = "rancher/harvester-eventrouter:v0.3.2"' -i $valuesfile
fi

# add 4 spaces to each line
Expand Down Expand Up @@ -581,4 +581,4 @@ upgrade_nvidia_driver_toolkit_addon()
sed -i "s|HTTPENDPOINT/NVIDIA-Linux-x86_64-vgpu-kvm.run|${CURRENTENDPOINT}|" /usr/local/share/addons/nvidia-driver-toolkit.yaml
fi
upgrade_addon nvidia-driver-toolkit harvester-system
}
}

0 comments on commit 0bde441

Please sign in to comment.