Skip to content

Commit db8f587

Browse files
author
Shivam Mukhade
committed
Adds clusterrole so that non-admin user can access repository CR
this adds a clusterrole using which non admin user would be able to perform crud operations on repository cr. Signed-off-by: Shivam Mukhade <[email protected]>
1 parent 601506f commit db8f587

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

config/200-role.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,28 @@ roleRef:
125125
apiGroup: rbac.authorization.k8s.io
126126
kind: ClusterRole
127127
name: openshift-pipeline-as-code-clusterrole
128+
---
129+
apiVersion: rbac.authorization.k8s.io/v1
130+
kind: ClusterRole
131+
metadata:
132+
name: pipelines-as-code-aggregate
133+
labels:
134+
app.kubernetes.io/version: "devel"
135+
app.kubernetes.io/instance: default
136+
app.kubernetes.io/part-of: pipelines-as-code
137+
rbac.authorization.k8s.io/aggregate-to-edit: "true"
138+
rbac.authorization.k8s.io/aggregate-to-admin: "true"
139+
rules:
140+
- apiGroups:
141+
- pipelinesascode.tekton.dev
142+
resources:
143+
- repositories
144+
verbs:
145+
- create
146+
- delete
147+
- deletecollection
148+
- get
149+
- list
150+
- patch
151+
- update
152+
- watch

0 commit comments

Comments
 (0)