From ff57c4b128d546eafe6d7127720b9f9e67c630fe Mon Sep 17 00:00:00 2001 From: shreddedbacon Date: Fri, 3 Nov 2023 13:01:42 +1100 Subject: [PATCH] feat: add cpu limit flag --- legacy/build-deploy-docker-compose.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/build-deploy-docker-compose.sh b/legacy/build-deploy-docker-compose.sh index b6f54716..87e177d3 100755 --- a/legacy/build-deploy-docker-compose.sh +++ b/legacy/build-deploy-docker-compose.sh @@ -857,6 +857,9 @@ yq3 write -i -- /kubectl-build-deploy/values.yaml 'lagoonVersion' $LAGOON_VERSIO if [ "$ADMIN_LAGOON_FEATURE_FLAG_CONTAINER_MEMORY_LIMIT" ]; then yq3 write -i -- /kubectl-build-deploy/values.yaml 'resources.limits.memory' "$ADMIN_LAGOON_FEATURE_FLAG_CONTAINER_MEMORY_LIMIT" fi +if [ "$ADMIN_LAGOON_FEATURE_FLAG_CONTAINER_CPU_LIMIT" ]; then + yq3 write -i -- /kubectl-build-deploy/values.yaml 'resources.limits.cpu' "$ADMIN_LAGOON_FEATURE_FLAG_CONTAINER_CPU_LIMIT" +fi if [ "$ADMIN_LAGOON_FEATURE_FLAG_EPHEMERAL_STORAGE_REQUESTS" ]; then yq3 write -i -- /kubectl-build-deploy/values.yaml 'resources.requests.ephemeral-storage' "$ADMIN_LAGOON_FEATURE_FLAG_EPHEMERAL_STORAGE_REQUESTS" fi