Commit 86f9173c authored by Waleed Akbar's avatar Waleed Akbar
Browse files

Refactor deployment environment variables for consistency in monitoring scripts

parent 16abc1ba
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
set -euo pipefail

# Deploy TFS in production environment
export TFS_DEPLOY_PRODUCTION=${TFS_DEPLOY_PRODUCTION:-""}
export DEPLOY_TSDB_MODE=${DEPLOY_TSDB_MODE:-""}

# -----------------------------------------------------------
# Global namespace for all deployments
@@ -108,7 +108,7 @@ kubectl rollout status deployment/"$RELEASE_NAME_PROM-server" -n "$NAMESPACE" ||


# 2) Deploy Mimir
if [ "$TFS_DEPLOY_PRODUCTION" == "YES" ]; then
if [ "$DEPLOY_TSDB_MODE" == "YES" ]; then
    echo "Deploying Mimir in production mode."
    # You can add any production-specific configurations here if needed
    deploy_chart "$RELEASE_NAME_MIMIR" \
@@ -118,8 +118,7 @@ if [ "$TFS_DEPLOY_PRODUCTION" == "YES" ]; then
                "$VALUES_FILE_MIMIR" \
                "$NAMESPACE"

    # Depending on how Mimir runs (StatefulSets, Deployments), you can wait for
    # the correct resource to be ready. For example:
    # you can wait for the resource to be ready.
    kubectl rollout status statefulset/"$RELEASE_NAME_MIMIR-distributor" -n "$NAMESPACE" || true
fi

+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ export TFS_GRAFANA_PASSWORD="admin123+"
export TFS_SKIP_BUILD=""

# Deploy TFS in production environment
export TFS_DEPLOY_PRODUCTION=""
export DEPLOY_TSDB_MODE=""

# ----- CockroachDB ------------------------------------------------------------