diff --git a/oc-process.sh b/oc-process.sh index 63f3bba..32badf5 100755 --- a/oc-process.sh +++ b/oc-process.sh @@ -26,6 +26,7 @@ if [ "$BRANCH" != "main" ]; then HOST=$HOST_DEV FINBIF_PRIVATE_API="dev" DB_PASSWORD=$DB_PASSWORD_DEV + MEMORY=$MEMORY_DEV fi @@ -93,4 +94,5 @@ oc process -f $f \ -p SMTP_PORT="$SMTP_PORT" \ -p ERROR_EMAIL_TO="$ERROR_EMAIL_TO" \ -p ERROR_EMAIL_FROM="$ERROR_EMAIL_FROM" \ + -p MEMORY="$MEMORY" \ | jq $ITEM diff --git a/template.yml b/template.yml index b054a0b..35076e9 100644 --- a/template.yml +++ b/template.yml @@ -73,6 +73,8 @@ parameters: required: true - name: ERROR_EMAIL_FROM required: true + - name: MEMORY + required: true metadata: name: ${APP} objects: @@ -161,7 +163,7 @@ objects: resources: limits: cpu: "2000m" - memory: "2Gi" + memory: ${MEMORY} - kind: Deployment apiVersion: apps/v1 metadata: @@ -243,7 +245,7 @@ objects: resources: limits: cpu: "2000m" - memory: "2Gi" + memory: ${MEMORY} - kind: Deployment apiVersion: apps/v1 metadata: