Skip to content

Commit 7579ea1

Browse files
committed
Add permission for CRD resource
1 parent 6e1176d commit 7579ea1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

config/rbac/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ rules:
6060
- list
6161
- update
6262
- watch
63+
- apiGroups:
64+
- apiextensions.k8s.io
65+
resources:
66+
- customresourcedefinitions
67+
verbs:
68+
- get
69+
- list
70+
- watch
6371
- apiGroups:
6472
- apps
6573
resources:

controllers/trustyaiservice_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ type TrustyAIServiceReconciler struct {
7070
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterrolebindings,verbs=get;list;watch;create;update;delete
7171
//+kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;create;update
7272
//+kubebuilder:rbac:groups=networking.istio.io,resources=destinationrules,verbs=create;list;watch;get;update;patch;delete
73+
//+kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=list;watch;get
7374

7475
// Reconcile is part of the main kubernetes reconciliation loop which aims to
7576
// move the current state of the cluster closer to the desired state.

0 commit comments

Comments
 (0)