Skip to content

Commit

Permalink
refactor: remove autogenerated ingress if they are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Sep 14, 2023
1 parent a7a6ad3 commit 4dc4597
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions legacy/build-deploy-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,12 @@ if [ ! "$AUTOGEN_ROUTES_DISABLED" == true ]; then
build-deploy-tool template autogenerated-ingress
else
echo ">> Autogenerated ingress templates disabled for this build"
# delete any autogenerated ingress in the namespace as they are disabled
if kubectl -n ${NAMESPACE} get ingress -l "lagoon.sh/autogenerated=true" &> /dev/null; then
echo ">> Removing any autogenerated ingress"
kubectl -n ${NAMESPACE} delete ingress -l "lagoon.sh/autogenerated=true"
echo ">> Autogenerated ingress removed"
fi
# end custom route
fi

Expand Down

0 comments on commit 4dc4597

Please sign in to comment.