Skip to content

Commit

Permalink
Let OpenShift handle cronjobs, remove oc daily
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jul 23, 2024
1 parent 8cf580a commit 09e2be7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sync/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ parameters:
value: "false"

### Usually a bad idea - not recommended
- name: CRON_MINUTES
description: Random number, 0-60, for scheduling cronjobs
from: "[0-5]{1}[0-9]{1}"
generate: expression
- name: JOB_BACKOFF_LIMIT
description: "The number of attempts to try for a successful job outcome"
value: "3"
Expand All @@ -53,7 +49,6 @@ objects:
app: ${REPO}-${ZONE}
cronjob: ${REPO}-${ZONE}
spec:
schedule: "${CRON_MINUTES} 8 * * *" # Run daily at 8:xx AM UTC
startingDeadlineSeconds: 60
concurrencyPolicy: "Replace"
successfulJobsHistoryLimit: "${{JOB_HISTORY_SUCCESS}}"
Expand All @@ -64,7 +59,7 @@ objects:
app: ${REPO}-${ZONE}
cronjob: ${REPO}-${ZONE}
spec:
backoffLimit: ${{JOB_BACKOFF_LIMIT}}
backoffLimit: "${{JOB_BACKOFF_LIMIT}}"
template:
metadata:
labels:
Expand Down

0 comments on commit 09e2be7

Please sign in to comment.