-
Bug
-
Resolution: Done
-
Blocker
-
Pipelines 1.7
-
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.