Skip to content

Commit 435cf4b

Browse files
authored
Merge pull request #1212 from mgfritch/fix-coredns-nodecache-sed
updatecli: Fix nodecache tag regex for -r<N>-build structure
2 parents 41502ed + e1c71c9 commit 435cf4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎updatecli/scripts/update-coredns.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [ -n "$AUTOSCALER_VERSION" ]; then
2626
fi
2727
fi
2828
if [ -n "$NODECACHE_VERSION" ]; then
29-
current_tag_nodecache_version=$(sed -nr 's/^\+ tag: \"('[0-9]+.[0-9]+.[0-9]+-build[0-9]+')\"/\1/p' packages/rke2-coredns/generated-changes/patch/values.yaml.patch | tail -1)
29+
current_tag_nodecache_version=$(sed -nr 's/^\+ tag: \"('[0-9]+.[0-9]+.[0-9]+-r[0-9]+-build[0-9]+')\"/\1/p' packages/rke2-coredns/generated-changes/patch/values.yaml.patch | tail -1)
3030
if [ "$current_tag_nodecache_version" != "$NODECACHE_VERSION" ]; then
3131
echo "Updating nodecache image to $NODECACHE_VERSION"
3232
sed -i "s/$current_tag_nodecache_version/$NODECACHE_VERSION/g" packages/rke2-coredns/generated-changes/patch/values.yaml.patch

0 commit comments

Comments
 (0)