Skip to content

Commit

Permalink
add support for upgrading edge cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrr committed Jan 30, 2024
1 parent ab4e969 commit e525f5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions upgrade_edge/upgrade_edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ get_current_k8s_version() {
local major=$(echo $version_string | cut -d. -f1)
local minor=$(echo $version_string | cut -d. -f2)
local patch=$(echo $version_string | cut -d. -f3)

if [ $patch -gt 0 ]; then
patch=0
fi
local next_minor=$((minor + 1))
echo "${major}.${next_minor}.${patch}"
NEXT_VERSION="${major}.${next_minor}.${patch}"
Expand Down

0 comments on commit e525f5d

Please sign in to comment.