Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-2271

Running PRs and TRs getting deleted with --ignore-running=true

XMLWordPrintable

    • Pipelines Sprint 219

      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

      https://github.com/tektoncd/cli/issues/1571

            piyushgarg001 Piyush Garg
            piyushgarg001 Piyush Garg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: