Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Aug 5, 2024
1 parent 784188a commit 247ee27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions oc-process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ BRANCH=$(git symbolic-ref --short -q HEAD)

if [ "$BRANCH" != "main" ]; then

HOST=$HOST_DEV
DB_PASSWORD=$DB_PASSWORD_DEV
TIMEOUT_IN_HOURS=$TIMEOUT_IN_HOURS_DEV
JOB_SECRET=$JOB_SECRET_DEV
STORAGE=$STORAGE_DEV
HOST=$HOST_DEV
DB_PASSWORD=$DB_PASSWORD_DEV
TIMEOUT_IN_HOURS=$TIMEOUT_IN_HOURS_DEV
JOB_SECRET=$JOB_SECRET_DEV
STORAGE=$STORAGE_DEV
MEMORY=$MEMORY_DEV

fi

Expand Down Expand Up @@ -102,4 +103,5 @@ oc process -f $f \
-p OBJECT_STORE="$OBJECT_STORE" \
-p RCLONE_ACCESS_KEY_ID="$RCLONE_ACCESS_KEY_ID" \
-p RCLONE_SECRET_ACCESS_KEY="$RCLONE_SECRET_ACCESS_KEY" \
-p MEMORY="$MEMORY" \
| jq $ITEM
4 changes: 3 additions & 1 deletion template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ parameters:
required: true
- name: JOB_SECRET
required: true
- name: MEMORY
required: true
metadata:
name: ${APP}
objects:
Expand Down Expand Up @@ -439,5 +441,5 @@ objects:
resources:
limits:
cpu: "500m"
memory: "2Gi"
memory: ${MEMORY}
restartPolicy: Never

0 comments on commit 247ee27

Please sign in to comment.