Skip to content

Add --keep delete --all for pipelineruns and taskruns #718

Closed
@chmouel

Description

Example :

% tkn pipelineruns delete --all --keep=5

Will delete all pipelinesruns except the last 5 ones.

I think we should keep this option for the auto generated resources, like
taskruns and pipelineruns.

This was a query comping from a message on slack

https://tektoncd.slack.com/archives/CJ62C1555/p1581478036338900

asking if there was a way to limit the number of pipelinerun. There is no
support for this in pipeline atm but we can easily do that in cli and could be
much more flexible than what we can implement in pipeline.

/kind feature

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions