Skip to content

Commit

Permalink
set job history limits for pruning cronjobs
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Cerven <rcerven@redhat.com>
  • Loading branch information
rcerven committed Mar 22, 2023
1 parent b6359d9 commit 4b42fbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
---
zombie_slots_pruner_enabled: false
osbs_generic_cronjob_successful_jobs: 1
osbs_generic_cronjob_failed_jobs: 1
6 changes: 6 additions & 0 deletions tasks/configure_namespace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
name: "{{ item.name }}"
spec:
schedule: "{{ pipeline_run_pruning_schedule }}"
successfulJobsHistoryLimit: "{{ osbs_generic_cronjob_successful_jobs }}"
failedJobsHistoryLimit: "{{ osbs_generic_cronjob_failed_jobs }}"
jobTemplate:
spec:
template:
Expand Down Expand Up @@ -143,6 +145,8 @@
name: "{{ item.name }}"
spec:
schedule: "{{ pod_pruning_schedule }}"
successfulJobsHistoryLimit: "{{ osbs_generic_cronjob_successful_jobs }}"
failedJobsHistoryLimit: "{{ osbs_generic_cronjob_failed_jobs }}"
jobTemplate:
spec:
template:
Expand Down Expand Up @@ -180,6 +184,8 @@
name: "{{ item.name }}"
spec:
schedule: "{{ zombie_slots_pruner_schedule }}"
successfulJobsHistoryLimit: "{{ osbs_generic_cronjob_successful_jobs }}"
failedJobsHistoryLimit: "{{ osbs_generic_cronjob_failed_jobs }}"
jobTemplate:
spec:
template:
Expand Down

0 comments on commit 4b42fbc

Please sign in to comment.