Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions beta/serverless-fleets/init-fleet-sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CLEANUP_ON_SUCCESS=${CLEANUP_ON_SUCCESS:=false}
REGION="${REGION:=eu-de}"
NAME_PREFIX="${NAME_PREFIX:=ce-fleet-sandbox}"
SETUP_LOGGING="${SETUP_LOGGING:-true}"
SETUP_MONITORING="${SETUP_MONITORING:-true}"
SETUP_MONITORING="${SETUP_MONITORING:-false}"


# Generate a short uuid for some resources
Expand Down Expand Up @@ -41,7 +41,7 @@ function clean() {
target_region $REGION
target_resource_group $resource_group_name

rm -rf .rclone*
rm -rf .rclone_${resource_group_name}.conf

if [[ "$SETUP_MONITORING" == "true" ]]; then
ibmcloud resource service-key-delete ${sysdig_key_name} -f -q 2>/dev/null
Expand Down Expand Up @@ -126,14 +126,15 @@ print_msg "\n======================================================"
print_msg " Setting up \"Code Engine Serverless Fleet\" sample"
print_msg "======================================================\n"

if [[ "$SETUP_LOGGING" != "true" || "$SETUP_MONITORING" != "true" ]]; then
#if [[ "$SETUP_LOGGING" != "true" || "$SETUP_MONITORING" != "true" ]]; then
if [[ "$SETUP_LOGGING" != "true" ]]; then
print_msg " ATTENTION: You requested to setup a fleet sandbox without : \n"
if [[ "$SETUP_LOGGING" != "true" ]]; then
print_msg " - logging support \n"
fi
if [[ "$SETUP_MONITORING" != "true" ]]; then
print_msg " - monitoring support \n"
fi
# if [[ "$SETUP_MONITORING" != "true" ]]; then
# print_msg " - monitoring support \n"
# fi
print_msg "Do you really want to continue setup without these services? They cannot be added later \n"
read -p "Continue [y|n]? " yn
case $yn in
Expand Down