How to Modify "FailedJobsHistoryLimit" or "SuccessfulJobsHistoryLimit" Settings for CronJobs?

Problem

To modify the default values for FailedJobsHistoryLimit or SuccessfulJobsHistoryLimit settings in CronJobs.

Environment

  • Self-Hosted Private Cloud Director - Virtualisation: v2025.4 and Higher.
  • Self-Hosted Private Cloud Director - Kubernetes: v2025.4 and Higher.
  • Private Cloud Director - Virtualisation: v2025.4 and Higher.
  • Private Cloud Director - Kubernetes: v2025.4 and Higher.

Procedure

  1. Take the backup of the existing cronjob using the below command:
Command
Copy
  1. Edit the cronjob object file.
Command
Copy
  1. Under spec section modify the desired value for FailedJobsHistoryLimit or SuccessfulJobsHistoryLimit.
Edit Cronjob
Copy
  1. Save the file.
Command
Copy
  1. Verify the change.
Command
Copy

Additional Information

To update the default values for all CronJobs, apply the same procedure to each one.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard