Skip to content

Commit 839d3bb

Browse files
committed
Replace collect-profile jobs that haven't completed
Problem: If for some reason the collect-profiles CronJob is unable to finish for an extended period of time, the number of pods created when the jobs are able to run can exceed node pod quota limits. Solution: Set the collect-profiles cronJob's spec.concurrencyPolicy to "Replace" so that only one active collect-profiles pod exists at any time.
1 parent 6858269 commit 839d3bb

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
@@ -8,6 +8,7 @@ metadata:
88
namespace: openshift-operator-lifecycle-manager
99
spec:
1010
schedule: "*/15 * * * *"
11+
concurrencyPolicy: "Replace"
1112
jobTemplate:
1213
spec:
1314
template:

scripts/generate_crds_manifests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ metadata:
247247
name: collect-profiles
248248
namespace: openshift-operator-lifecycle-manager
249249
spec:
250+
concurrencyPolicy: "Replace"
250251
schedule: "*/15 * * * *"
251252
jobTemplate:
252253
spec:

0 commit comments

Comments
 (0)