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

[POR-747] Remove older successful and failed jobs, and keep only 20 most recent ones #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mnafees
Copy link
Contributor

@mnafees mnafees commented Nov 1, 2022

The number of jobs on a cluster can become out of hand, because even though the Helm release revisions are being curtailed and deleted the number of Job objects themselves might not be.

This PR adds a goroutine-based solution to go through all jobs on the cluster and for every job release, keep only the most recent 20 failed and sucessful job objects on the cluster.

@mnafees mnafees self-assigned this Nov 1, 2022
@mnafees mnafees marked this pull request as ready for review November 9, 2022 14:23
@mnafees mnafees requested a review from abelanger5 November 9, 2022 14:23
@mnafees mnafees requested review from rudimk and removed request for abelanger5 May 25, 2023 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant