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

Regular users cannot add pipeline-as-code repository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • Pipelines 1.7
    • Pipelines 1.7
    • Operator
    • None
    • False
    • None
    • False

      Current Behavior

      Regular users are not able to add repository when using pipeline-as-code:

      $ tkn pac repo new
      ? Enter the Git repository url containing the pipelines (default: https://github.com/VeereshAradhya/pac-test-non-admin):  
      ? Please enter the namespace where the pipeline will be created (default: pac-non-admin): 
      Error: repositories.pipelinesascode.tekton.dev is forbidden: User "user1" cannot create resource "repositories" in API group "pipelinesascode.tekton.dev" in the namespace "pac-non-admin"
      

      Only cluster-admins and users that cluster-admin configures are able to add repository:
      https://pipelinesascode.com/docs/install/installation/#rbac

      Expected Behavior

      Once OpenShift Pipelines operator is installed, any user can add repositories in the namespaces they have access to, without any involvement needed from admins.

              smukhade Shivam Mukhade (Inactive)
              rh-ee-ssadeghi Siamak Sadeghianfar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: