-
Bug
-
Resolution: Done
-
Major
-
Pipelines 1.6, Pipelines 1.7
Kubernetes version:
Kubernetes 1.23.5
OpenShift 4.10
Tekton Pipeline version:
Client version: 0.23.1
Pipeline version: v0.33.2
Operating System:
Fedora 35
Expected Behavior
When using `--ignore-running=true` with `-p=<pipeline-name` in `tkn pr delete` or `tkn tr delete`, it should not delete the running pipelineruns or taskruns.
Actual Behavior
It is deleting all the pipelineruns or taskruns of that respective pipeline or task, without taking a note of the running state.
Steps to Reproduce the Problem
1. Create a few PR of a pipeline with some `sleep 10000`
2. Hit `tkn pr delete --p=test --ignore-running=true`
3. Hit `tkn pr ls` and you will see all the running prs got deleted.
Additional Info
It is working fine with `--all` flag but not with `-p=<pipeline-name` flag
Upstream issue