Skip to content

Commit b0e9b6f

Browse files
authored
Merge pull request #30 from Kuadrant/providing-required-permissions
Providing required permissions
2 parents f223846 + 41a9a7f commit b0e9b6f

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

bundle/manifests/kuadrant-operator.clusterserviceversion.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,18 @@ spec:
120120
- patch
121121
- update
122122
- watch
123+
- apiGroups:
124+
- authorino.kuadrant.io
125+
resources:
126+
- authconfigs
127+
verbs:
128+
- create
129+
- delete
130+
- get
131+
- list
132+
- patch
133+
- update
134+
- watch
123135
- apiGroups:
124136
- coordination.k8s.io
125137
resources:
@@ -147,13 +159,29 @@ spec:
147159
- patch
148160
- update
149161
- watch
162+
- apiGroups:
163+
- extensions.istio.io
164+
resources:
165+
- wasmplugins
166+
verbs:
167+
- create
168+
- delete
169+
- get
170+
- list
171+
- patch
172+
- update
173+
- watch
150174
- apiGroups:
151175
- gateway.networking.k8s.io
152176
resources:
153177
- gateways
154178
verbs:
179+
- create
180+
- delete
155181
- get
156182
- list
183+
- patch
184+
- update
157185
- watch
158186
- apiGroups:
159187
- gateway.networking.k8s.io

config/rbac/role.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ rules:
9090
- patch
9191
- update
9292
- watch
93+
- apiGroups:
94+
- authorino.kuadrant.io
95+
resources:
96+
- authconfigs
97+
verbs:
98+
- create
99+
- delete
100+
- get
101+
- list
102+
- patch
103+
- update
104+
- watch
93105
- apiGroups:
94106
- coordination.k8s.io
95107
resources:
@@ -117,13 +129,29 @@ rules:
117129
- patch
118130
- update
119131
- watch
132+
- apiGroups:
133+
- extensions.istio.io
134+
resources:
135+
- wasmplugins
136+
verbs:
137+
- create
138+
- delete
139+
- get
140+
- list
141+
- patch
142+
- update
143+
- watch
120144
- apiGroups:
121145
- gateway.networking.k8s.io
122146
resources:
123147
- gateways
124148
verbs:
149+
- create
150+
- delete
125151
- get
126152
- list
153+
- patch
154+
- update
127155
- watch
128156
- apiGroups:
129157
- gateway.networking.k8s.io

controllers/kuadrant_controller.go

+3
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ type KuadrantReconciler struct {
7777
//+kubebuilder:rbac:groups="networking.istio.io",resources=gateways,verbs=get;list;watch
7878
//+kubebuilder:rbac:groups="security.istio.io",resources=authorizationpolicies,verbs=get;list;watch;create;update;patch;delete
7979
//+kubebuilder:rbac:groups=operator.authorino.kuadrant.io,resources=authorinos,verbs=get;list;watch;create;update;delete;patch
80+
//+kubebuilder:rbac:groups=authorino.kuadrant.io,resources=authconfigs,verbs=get;list;watch;create;update;delete;patch
81+
//+kubebuilder:rbac:groups=extensions.istio.io,resources=wasmplugins,verbs=get;list;watch;create;update;delete;patch
82+
//+kubebuilder:rbac:groups=gateway.networking.k8s.io,resources=gateways,verbs=get;list;watch;create;update;delete;patch
8083

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

0 commit comments

Comments
 (0)