-
Notifications
You must be signed in to change notification settings - Fork 234
Proposal to adopt event based pruner to tektoncd org #1208
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
base: main
Are you sure you want to change the base?
Proposal to adopt event based pruner to tektoncd org #1208
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
||
1. The pruner must operate efficiently and scale well in large Tekton clusters. | ||
|
||
2. Resource cleanup must only occur after a PipelineRun or TaskRun is fully completed (either succeeded or failed). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense, however for users of results and chains this may not be enough.
We would need the ability to preserve resources until specific annotations are added to them, to ensure they are not removed before they have been processed by other downstream clients.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@afrittoli chains and results are setting finalizers on objects for this reason (to be sure it doesn't get deleted before they can do something about it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank @anithapriyanatarajan for this very interesting proposal.
If I understood correctly, this would be a new project in the tektoncd org.
There some additional questions that the TEP should address, in particular who will maintain the project, see the link for more details.
The @tektoncd/governing-board needs to vote on this, however @tektoncd/results-maintainers and @tektoncd/operator-maintainers may want to review as well.
@afrittoli @vdemeester - Thankyou. Captured the required details in the Issue#1209. Please verify and suggest if anything further needs to be added. |
This PR includes the TEP to adopt Event-based-Pruner to the tektoncd org.
The Event-based-Pruner proposes an event triggered mechanism to cleanup completed PipelineRuns and TaskRuns as and when the Runs are completed based on pruner configurations defined in a configMap.