Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anithapriyanatarajan
Copy link

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.

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign houshengbo after the PR has been reviewed.
You can assign the PR to them by writing /assign @houshengbo in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 18, 2025

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).
Copy link
Member

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.

Copy link
Member

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)

Copy link
Member

@afrittoli afrittoli left a 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.

@anithapriyanatarajan
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants