-
Notifications
You must be signed in to change notification settings - Fork 265
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
Cleanup completed pipeline and tasks runs through dashboard #1752
Comments
Hi @jtestard ! |
My point is if someone uses only the tekton dashboard, this is one of the
tasks that quickly becomes necessary
Le jeu. 8 oct. 2020 à 12:50, eddycharly <notifications@github.com> a écrit :
… Hi @jtestard <https://github.com/jtestard> !
It’s not really a dashboard specific issue. I think we have an example of
cleaning up script in the plumbing repo. Let me check...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1752 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVKQSUEV6V4UMYUHI4S3WDSJWKOXANCNFSM4SIQURXQ>
.
|
Couldn’t find it, maybe @afrittoli knows the answer better ;) |
In general, at my company we are using tekton as early adopters because we are excited by the technology, but we are facing a number of problems that make tekton not quite "production-ready" yet for us. Happy to chat more about this. This issue is one of them. |
Similar requests have come up before. The
would delete all PipelineRuns of the specified Pipeline, keeping only the 2 most recent ones. This is the approach used in our plumbing repo and is triggered by a Kubernetes CronJob, see https://github.com/tektoncd/plumbing/blob/698db03c9f9888c46a7219d9a40c6b2f24763d51/tekton/resources/cd/cleanup-template.yaml#L60 There's also an issue to add support for field selectors which might allow to query based on status or similar, however this is currently blocked by lack of support in Kubernetes, see tektoncd/cli#995 (comment) for more. One option we've considered for the dashboard is the ability to select multiple runs in the dashboard UI and batch delete them, similar to what we currently support for Secrets and PipelineResources. |
IMO, tekton is un opinionated and you should not expect tekton to do things other than what it is supposed to do. Some will use the dashboard while others won’t, some will want to keep everything around while some need some sort of garbage collection. Tekton won’t do anything on your back, maybe it should be more clear so that users don’t get surprised. We often see similar requests though and it would be nice to have a place to provide guidance and tips because answering similar requests on a case by case basis is not effective. |
This is interesting to us.
Getting out of scope for this issue, but as long as there's an ecosystem in which add-ons can thrive, we could build our own for this kind of purpose as well. |
Assigning to @steveodonovan to implement the batch delete piece of this. |
There's now an example in the experimental repo with documentation showing how to use a CronJob to clean up completed runs. This is based on the approach from plumbing that I described above. |
Is your feature request related to a problem ?
My dashboard is growing very large (lots of completed tasks) and I have no way to clean it up.
Describe the solution you'd like
I'd like a way to delete all completed tasks runs and pipeline runs.
Describe alternatives you've considered
I know there must be a formula to do this through
kubectl
but I haven't spent the time to construct it. If the workaround through CLI could be added in the comment, it would help a lot, thanks :).The text was updated successfully, but these errors were encountered: