Skip to content

Commit f482cc8

Browse files
committed
add support for upgrading edge cluster
1 parent 654f359 commit f482cc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

upgrade_edge/upgrade_edge.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ upgrade_kubernetes() {
7676
./talosctl-"${server_version}" -n $SERVER_IP -e $SERVER_IP upgrade-k8s --to $NEXT_VERSION
7777
}
7878

79-
if [ "$UPGRADE_TALOS" = "true" ] && [ "$UPGRADE_KUBERENTES" = "true" ] ; then
79+
if [ "$UPGRADE_TALOS" == "true" ] && [ "$UPGRADE_KUBERENTES" == "true" ] ; then
8080
echo "Cannot upgrade both Talos and Kubernetes at the same time."
8181
exit 0
82-
elif [ "$UPGRADE_TALOS" = "true" ]; then
82+
elif [ "$UPGRADE_TALOS" == "true" ]; then
8383
check_talos_version_existence
8484
check_talosctl_version
8585
upgrade_talos
86-
elif [ "$UPGRADE_KUBERENTES" = "true" ]; then
86+
elif [ "$UPGRADE_KUBERENTES" == "true" ]; then
8787
check_talosctl_version
8888
get_current_k8s_version
8989
upgrade_kubernetes

0 commit comments

Comments
 (0)