Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove unused remnants of custom rollout support #408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
22 changes: 2 additions & 20 deletions legacy/build-deploy-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1499,14 +1499,6 @@ do
SERVICE_NAME=${SERVICE_TYPES_ENTRY_SPLIT[0]}
SERVICE_TYPE=${SERVICE_TYPES_ENTRY_SPLIT[1]}

SERVICE_ROLLOUT_TYPE=$(cat $DOCKER_COMPOSE_YAML | shyaml get-value services.${SERVICE_NAME}.labels.lagoon\\.rollout deployment)

# Allow the rollout type to be overriden by environment in .lagoon.yml
ENVIRONMENT_SERVICE_ROLLOUT_TYPE=$(cat .lagoon.yml | shyaml get-value environments.${BRANCH//./\\.}.rollouts.${SERVICE_NAME} false)
if [ ! $ENVIRONMENT_SERVICE_ROLLOUT_TYPE == "false" ]; then
SERVICE_ROLLOUT_TYPE=$ENVIRONMENT_SERVICE_ROLLOUT_TYPE
fi

# check if this service is a dbaas service and transform the service_type accordingly
for DBAAS_ENTRY in "${DBAAS[@]}"
do
Expand All @@ -1518,19 +1510,9 @@ do
fi
done

if [ $SERVICE_TYPE == "mariadb-dbaas" ]; then

echo "nothing to monitor for $SERVICE_TYPE"

elif [ $SERVICE_TYPE == "postgres-dbaas" ]; then

echo "nothing to monitor for $SERVICE_TYPE"

elif [ $SERVICE_TYPE == "mongodb-dbaas" ]; then

if [[ $SERVICE_TYPE == *"-dbaas" ]]; then
echo "nothing to monitor for $SERVICE_TYPE"

elif [ ! $SERVICE_ROLLOUT_TYPE == "false" ]; then
else
. /kubectl-build-deploy/scripts/exec-monitor-deploy.sh
fi
done
Expand Down
Loading