-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
build pruning configuration api #13640
Comments
Another option is to follow the implementation of the cleanup policy for CronJobs where options for both successful and failed jobs are provided: kubernetes/kubernetes#40932 |
@Kargakis isn't that pretty much option 5 above? |
I'm ok with 5, keep names consistent with cronjobs (sub build / jobs etc)
Builds are a job.
On Apr 5, 2017, at 7:22 PM, Ben Parees <[email protected]> wrote:
@Kargakis <https://github.com/kargakis> isn't that pretty much option 5
above?
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<#13640 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG_p2tS_-8hdZ-LkXDvndorozNtFjnqks5rs83CgaJpZM4M0aXz>
.
|
@bparees yeah, for some unknown reason I skipped that |
5 seems easiest to reason about. 1 still makes you understand that N might not be high enough to have a successful build still around. |
sounds like consensus on option 5 and copy the names from what other components use. |
Adds ability to set successfulBuildsHistoryLimit and failedBuildsHistoryLimit on buildConfigs which will prune old builds. Closes openshift#13640 Completes https://trello.com/c/048p7YRO/1044-5-cleanup-policy-for-builds-builds
We're working on https://trello.com/c/048p7YRO this sprint, and as part of that we need to add pruning configuration fields to the buildconfig. Specifically the user needs to tell us how many builds to keep.
We have a few apis in mind and would like @openshift/api-review to weigh in on the preferred implementation:
(5) aligns with the arguments oadm prune currently takes and is the most flexible option, so that's our preferred approach (ie introduce 2 new fields on BuildConfig, KeepFailedBuilds and KeepSuccessfulBuilds or some such names)
Default values will be infinity in all cases (again unless we are advised otherwise by @openshift/api-review)
/cc @coreydaley
The text was updated successfully, but these errors were encountered: