-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add --keep-since flag to pipelinerun delete #1392
Conversation
The following is the coverage report on the affected files.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
This PR might address #1388 |
The following is the coverage report on the affected files.
|
maybe --keep-since is a better flag name 🤔 |
@chmouel PERFECT 👍 |
How about renaming existing --keep -> --keep-max ? |
Renaming existing is not free backward compatibility and all, we may break a lot of users.. (altho we can do aliases but i don't think it's worth the pain) |
We could alias it ? But even if we want to do that, it should be in a different PR. |
Add a --since age for `tkn pipelinerun delete`. This allows deleting all pipeline older than X minutes. Signed-off-by: Chmouel Boudjnah <[email protected]>
I let this one up as an exercise to the reader 😏 |
The following is the coverage report on the affected files.
|
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.
/lgtm
#1391 | [Piyush Garg] Update readme for latest version | 2021/06/09-07:23 #1390 | [06kellyjac] Fix version command outputting empty | 2021/06/10-08:49 #1392 | [Chmouel Boudjnah] Add --since flag to pipelinerun delete | 2021/06/14-07:30 #1396 | [hasanrashid] Fix broken links in DEVELOPMENT.MD | 2021/06/18-23:20 #1400 | [Chmouel Boudjnah] Fix typo with my name | 2021/06/23-08:53 #1401 | [Christie Wilson] Add link to tkn bundle to main readme 🔗 | 2021/06/23-09:18 #1403 | [Chmouel Boudjnah] Update README about coloring being disabled | 2021/06/24-13:41 #1405 | [Pradeep Kumar] fix default --prefix=false with p/t/ct start | 2021/06/28-11:00 Signed-off-by: Pradeep Kumar <[email protected]>
#1391 | [Piyush Garg] Update readme for latest version | 2021/06/09-07:23 #1390 | [06kellyjac] Fix version command outputting empty | 2021/06/10-08:49 #1392 | [Chmouel Boudjnah] Add --since flag to pipelinerun delete | 2021/06/14-07:30 #1396 | [hasanrashid] Fix broken links in DEVELOPMENT.MD | 2021/06/18-23:20 #1400 | [Chmouel Boudjnah] Fix typo with my name | 2021/06/23-08:53 #1401 | [Christie Wilson] Add link to tkn bundle to main readme 🔗 | 2021/06/23-09:18 #1403 | [Chmouel Boudjnah] Update README about coloring being disabled | 2021/06/24-13:41 #1405 | [Pradeep Kumar] fix default --prefix=false with p/t/ct start | 2021/06/28-11:00 #1402 | [Chmouel Boudjnah] Add pipelinerun delete by label | 2021/06/29-12:09 Signed-off-by: Pradeep Kumar <[email protected]>
Added a release note for this new feature to the Pipelines release notes: https://github.com/openshift/openshift-docs/pull/37369/files |
Changes
Add a
--keep-since=Minutes
flag totkn pipelinerun delete
.This allows deleting all pipeline but the one younger than X minutes.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make check
make generated
Release Notes