Skip to content

Commit

Permalink
Merge branch 'main' of github.com:eficode-academy/k8s-edge-infra
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrr committed Jan 29, 2024
1 parent ce32ea7 commit c5089f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upgrade_edge/upgrade_edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#TALOS_VERSION="v1.5.5"
#UPGRADE_KUBERENTES="true"

if [[ "$UPGRADE_KUBERNETES" != "true" ]] || { [[ "$UPGRADE_TALOS" != "true" ]] && [[ -z "$TALOS_VERSION" ]]; }; then
if [[ "$UPGRADE_KUBERNETES" != "true" ]] || [[ "$UPGRADE_TALOS" != "true" ]] ; 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"
echo $UPGRADE_KUBERENTES
echo $UPGRADE_TALOS
Expand Down Expand Up @@ -78,7 +78,7 @@ upgrade_kubernetes() {

if [ "$UPGRADE_TALOS" = "true" ] && [ "$UPGRADE_KUBERENTES" = "true" ]; then
echo "Cannot upgrade both Talos and Kubernetes at the same time."
exit 1
exit 0
elif [ "$UPGRADE_TALOS" = "true" ]; then
check_talos_version_existence
check_talosctl_version
Expand Down

0 comments on commit c5089f6

Please sign in to comment.