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

tkn taskrun list is throwing error regarding cluster scope permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • Pipelines 1.10.0
    • Pipelines 1.10.0
    • Tekton CLI
    • None
    • Pipelines Sprint 231, Pipelines Sprint 232, Pipelines Sprint 233, Pipelines Sprint 234

      Versions and Operating System

      Kubernetes version:

      Kubernetes Version: v1.24.6+5157800

      Tekton Pipeline version:

      tkn version
      Client version: 0.29.0
      Pipeline version: v0.33.2
      Triggers version: v0.19.0
      Operator version: v0.55.1

      Operating System:

      Fedora 36

      Expected Behavior

      `tkn taskrun list` command should work fine and show the list of taskruns

      Actual Behavior

      `tkn taskrun list` command throwing error

      Error: failed to list TaskRuns from namespace test-list: taskruns.tekton.dev is forbidden: User "user1" cannot list resource "taskruns" in API group "tekton.dev" at the cluster scope

      Steps to Reproduce the Problem

      1. Login to any cluster as a normal user who have access to limited namespaces and have pipeline installed
      2. Hit command `tkn tr ls`
      3. See the error

      Additional Info

      It is working fine with tkn 0.28.0

      Upstream issue - https://github.com/tektoncd/cli/issues/1874

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

                Created:
                Updated:
                Resolved: