Skip to content

Commit

Permalink
Update upgrade_edge.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrr authored Jan 29, 2024
1 parent 0dfa8fa commit c2034e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions upgrade_edge/upgrade_edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
#TALOS_VERSION="v1.5.5"
#UPGRADE_KUBERENTES="true"

if [[ "$UPGRADE_KUBERNETES" == "true" ]] || [[ "$UPGRADE_TALOS" == "true" && -n $TALOS_VERSION ]]; then
if [[ "$UPGRADE_KUBERNETES" != "true" ]] || { [[ "$UPGRADE_TALOS" != "true" ]] && [[ -z "$TALOS_VERSION" ]]; }; then
echo "None of the variables UPGRADE_KUBERNETES or UPGRADE_TALOS has been set to true (true as a string, not a boolean), exiting without any upgrading"
exit 0
fi

check_talos_version_existence() {
Expand Down Expand Up @@ -83,4 +84,4 @@ elif [ "$UPGRADE_KUBERENTES" = "true" ]; then
check_talosctl_version
get_current_k8s_version
upgrade_kubernetes
fi
fi

0 comments on commit c2034e8

Please sign in to comment.