Commit 5f7aa68f authored by David José Araújo Ferreira's avatar David José Araújo Ferreira
Browse files

Add redeploy all feature

parent 9183e34e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,11 @@
# Read deployment settings
########################################################################################################################

# ----- Redeploy All ------------------------------------------------------------

# If not already set, enables all components redeployment
export REDEPLOYALL=${REDEPLOYALL:-""}


# ----- TeraFlowSDN ------------------------------------------------------------

+2 −2
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ function crdb_drop_database_cluster() {
}

if [ "$CRDB_DEPLOY_MODE" == "single" ]; then
    if [ "$CRDB_REDEPLOY" == "YES" ]; then
    if [ "$CRDB_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then
        crdb_undeploy_single
    fi

@@ -360,7 +360,7 @@ if [ "$CRDB_DEPLOY_MODE" == "single" ]; then
        crdb_drop_database_single
    fi
elif [ "$CRDB_DEPLOY_MODE" == "cluster" ]; then
    if [ "$CRDB_REDEPLOY" == "YES" ]; then
    if [ "$CRDB_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then
        crdb_undeploy_cluster
    fi

+1 −1
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ function nats_undeploy_single() {
    echo
}

if [ "$NATS_REDEPLOY" == "YES" ]; then
if [ "$NATS_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then
    nats_undeploy_single
fi

+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ function qdb_drop_tables() {
    echo
}

if [ "$QDB_REDEPLOY" == "YES" ]; then
if [ "$QDB_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then
    qdb_undeploy
fi

+5 −0
Original line number Diff line number Diff line
@@ -13,6 +13,11 @@
# 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="YES"


# ----- TeraFlowSDN ------------------------------------------------------------