Skip to content

Commit 74f30c4

Browse files
authored
give konflux admins rights on crds and webhooks (#7608)
As a part of the kubesaw removal, we're going to need to be able to make changes to CRDs and ValidatingWebhookConfigurations on the clusters (mostly deleting a handful, but read permissions would make things easier). We could take a few approaches to this, including defining a Job to automate this removal process, but if anything goes wrong, admins need to be able to step in and restore things on the clusters. Therefore, give members of the konflux-admins group more permissions to administrate these resources. Signed-off-by: Andy Sadler <[email protected]>
1 parent 5327d7e commit 74f30c4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

components/authentication/base/konflux-admins.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,13 @@ rules:
325325
resources:
326326
- customresourcedefinitions
327327
verbs:
328-
- list
328+
- create
329329
- get
330+
- list
331+
- watch
332+
- patch
333+
- update
334+
- delete
330335
- apiGroups:
331336
- kyverno.io
332337
resources:
@@ -374,6 +379,18 @@ rules:
374379
- '*'
375380
verbs:
376381
- '*'
382+
- apiGroups:
383+
- admissionregistration.k8s.io
384+
resources:
385+
- validatingwebhookconfigurations
386+
verbs:
387+
- create
388+
- get
389+
- list
390+
- watch
391+
- patch
392+
- update
393+
- delete
377394
---
378395
apiVersion: rbac.authorization.k8s.io/v1
379396
kind: ClusterRoleBinding

0 commit comments

Comments
 (0)