diff --git a/defaults/main.yml b/defaults/main.yml index e689e4c..be64a0b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,4 @@ --- zombie_slots_pruner_enabled: false +osbs_generic_cronjob_successful_jobs: 1 +osbs_generic_cronjob_failed_jobs: 1 diff --git a/tasks/configure_namespace.yml b/tasks/configure_namespace.yml index a07e662..aa02dbe 100644 --- a/tasks/configure_namespace.yml +++ b/tasks/configure_namespace.yml @@ -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: @@ -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: @@ -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: