Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cleanup of successful jobs #134

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Allow cleanup of successful jobs #134

merged 1 commit into from
Jan 28, 2025

Conversation

bastjan
Copy link
Contributor

@bastjan bastjan commented Jan 28, 2025

Allows cleanup of older successful jobs.

Adds successfulJobsHistoryLimit to UpgradeConfig spec. Defaults to 4, roughly one month if updating weekly.

I did not add the same field for failed jobs since they need to be cleaned up manually anyways. It is not possible by design to delete the most recent successful job.

Fixes #118.

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update tests.
  • Link this PR to related issues.

@bastjan bastjan requested a review from a team as a code owner January 28, 2025 15:42
@bastjan bastjan added the enhancement New feature or request label Jan 28, 2025
@bastjan bastjan changed the title Add successfulJobsHistoryLimit to UpgradeConfig spec Allow cleanup of successful jobs Jan 28, 2025
@bastjan bastjan force-pushed the cleanup-successful-jobs branch 2 times, most recently from 8655bd7 to 43ca59e Compare January 28, 2025 20:57
Allows cleanup of older successful jobs.
I did not add the same field for failed jobs since they need to be cleaned up manually anyways.
It is not possible by design to delete the most recent successful job.
@bastjan bastjan force-pushed the cleanup-successful-jobs branch from 43ca59e to 6ac0b24 Compare January 28, 2025 20:58
@bastjan bastjan merged commit a288f24 into master Jan 28, 2025
3 checks passed
@bastjan bastjan deleted the cleanup-successful-jobs branch January 28, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgradejob history limits
2 participants