Skip to content

Commit 3280d94

Browse files
awgreeneopenshift-cherrypick-robot
authored andcommitted
Replace long running collect-profiles jobs
Problem: The collect-profiles job should only take a few seconds to run. There are instances, such as when the pod cannot be scheduled, where the job will not complete in a reasonable amount of time. If enough jobs are scheduled but unable to run, the number of scheduled jobs can exceed pod quota limits. Solution: Given that the collect-profiles job should only take a few seconds to run and that the job is scheduled to run every 15 minutes, set the collect-profiles cronJob's spec.concurrencyPolicy to "Replace" so that only one active collect-profiles pod exists at any time.
1 parent a336955 commit 3280d94

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

manifests/0000_50_olm_07-collect-profiles.cronjob.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
namespace: openshift-operator-lifecycle-manager
1010
spec:
1111
schedule: "*/15 * * * *"
12+
concurrencyPolicy: "Replace"
1213
jobTemplate:
1314
spec:
1415
template:

scripts/generate_crds_manifests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ metadata:
256256
namespace: openshift-operator-lifecycle-manager
257257
spec:
258258
schedule: "*/15 * * * *"
259+
concurrencyPolicy: "Replace"
259260
jobTemplate:
260261
spec:
261262
template:

0 commit comments

Comments
 (0)