From f35c556646af56591771b74ca51f868f8d070acd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Ara=C3=BAjo?= <davidaraujo@av.it.pt>
Date: Fri, 5 Jul 2024 00:14:50 +0100
Subject: [PATCH] REDEPLOYALL flag removed

---
 deploy/all.sh  | 6 ------
 deploy/crdb.sh | 9 ++-------
 deploy/nats.sh | 6 +-----
 deploy/qdb.sh  | 6 +-----
 my_deploy.sh   | 6 ------
 5 files changed, 4 insertions(+), 29 deletions(-)

diff --git a/deploy/all.sh b/deploy/all.sh
index c5d423a2f..da3b412d5 100755
--- a/deploy/all.sh
+++ b/deploy/all.sh
@@ -18,12 +18,6 @@
 # Read deployment settings
 ########################################################################################################################
 
-# ----- Redeploy All ------------------------------------------------------------
-
-# If not already set, enables all components redeployment
-export REDEPLOYALL=${REDEPLOYALL:-""}
-
-
 # ----- TeraFlowSDN ------------------------------------------------------------
 
 # If not already set, set the URL of the Docker registry where the images will be uploaded to.
diff --git a/deploy/crdb.sh b/deploy/crdb.sh
index 6412d1316..03a6dc5a6 100755
--- a/deploy/crdb.sh
+++ b/deploy/crdb.sh
@@ -18,11 +18,6 @@
 # Read deployment settings
 ########################################################################################################################
 
-# ----- Redeploy All ------------------------------------------------------------
-# If not already set, enables all components redeployment
-export REDEPLOYALL=${REDEPLOYALL:-""}
-
-
 # If not already set, set the namespace where CockroackDB will be deployed.
 export CRDB_NAMESPACE=${CRDB_NAMESPACE:-"crdb"}
 
@@ -365,7 +360,7 @@ function crdb_drop_database_cluster() {
 }
 
 if [ "$CRDB_DEPLOY_MODE" == "single" ]; then
-    if [ "$CRDB_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then
+    if [ "$CRDB_REDEPLOY" == "YES" ]; then
         crdb_undeploy_single
     fi
 
@@ -375,7 +370,7 @@ if [ "$CRDB_DEPLOY_MODE" == "single" ]; then
         crdb_drop_database_single
     fi
 elif [ "$CRDB_DEPLOY_MODE" == "cluster" ]; then
-    if [ "$CRDB_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then
+    if [ "$CRDB_REDEPLOY" == "YES" ]; then
         crdb_undeploy_cluster
     fi
 
diff --git a/deploy/nats.sh b/deploy/nats.sh
index 57fda629c..1bad13f02 100755
--- a/deploy/nats.sh
+++ b/deploy/nats.sh
@@ -18,10 +18,6 @@
 # Read deployment settings
 ########################################################################################################################
 
-# ----- Redeploy All ------------------------------------------------------------
-# If not already set, enables all components redeployment
-export REDEPLOYALL=${REDEPLOYALL:-""}
-
 # If not already set, set the namespace where NATS will be deployed.
 export NATS_NAMESPACE=${NATS_NAMESPACE:-"nats"}
 
@@ -224,7 +220,7 @@ function nats_undeploy() {
     echo
 }
 
-if [ "$NATS_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then
+if [ "$NATS_REDEPLOY" == "YES" ]; then
     nats_undeploy
 fi
 
diff --git a/deploy/qdb.sh b/deploy/qdb.sh
index 513ef9ae0..acbcfd4f9 100755
--- a/deploy/qdb.sh
+++ b/deploy/qdb.sh
@@ -18,10 +18,6 @@
 # Read deployment settings
 ########################################################################################################################
 
-# ----- Redeploy All ------------------------------------------------------------
-# If not already set, enables all components redeployment
-export REDEPLOYALL=${REDEPLOYALL:-""}
-
 # If not already set, set the namespace where QuestDB will be deployed.
 export QDB_NAMESPACE=${QDB_NAMESPACE:-"qdb"}
 
@@ -181,7 +177,7 @@ function qdb_drop_tables() {
     echo
 }
 
-if [ "$QDB_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then
+if [ "$QDB_REDEPLOY" == "YES" ]; then
     qdb_undeploy
 fi
 
diff --git a/my_deploy.sh b/my_deploy.sh
index 991c21e71..956d1b654 100755
--- a/my_deploy.sh
+++ b/my_deploy.sh
@@ -13,12 +13,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# ----- Redeploy All ------------------------------------------------------------
-
-# If not already set, enables all components redeployment
-export REDEPLOYALL=""
-
-
 # ----- TeraFlowSDN ------------------------------------------------------------
 
 # Set the URL of the internal MicroK8s Docker registry where the images will be uploaded to.
-- 
GitLab