Skip to content

Commit

Permalink
Add mtar deployment option to autoscaler script
Browse files Browse the repository at this point in the history
 • Implement conditional inclusion of use-cf-services.yml based on enable_mtar flag in deploy-autoscaler.sh
 • Introduce ENABLE_MTAR environment variable with default false in vars.source.sh
  • Loading branch information
bonzofenix committed Oct 23, 2024
1 parent 699b4d7 commit c376f1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/autoscaler/scripts/deploy-autoscaler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ ops_files=${OPS_FILES:-"${autoscaler_dir}/operations/add-releases.yml\
${autoscaler_dir}/operations/enable-scheduler-logging.yml"}


## if mtar_deployment_enabled, then apply the use-cf operator file
if [[ "${enable_mtar}" == "true" ]]; then
echo "Deploying with mtar enabled"
ops_files+=" ${autoscaler_dir}/operations/use-cf-services.yml"
fi

case "${cpu_upper_threshold}" in
"100")
# default
Expand Down
4 changes: 4 additions & 0 deletions ci/autoscaler/scripts/vars.source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@ debug "PERFORMANCE_TEARDOWN: ${PERFORMANCE_TEARDOWN}"
export CPU_UPPER_THRESHOLD=${CPU_UPPER_THRESHOLD:-100}
debug "CPU_UPPER_THRESHOLD: ${CPU_UPPER_THRESHOLD}"
cpu_upper_threshold=${CPU_UPPER_THRESHOLD}

export ENABLE_MTAR=${ENABLE_MTAR:-false}
debug "ENABLE_MTAR: ${ENABLE_MTAR}"
enable_mtar=${ENABLE_MTAR}

0 comments on commit c376f1b

Please sign in to comment.