Skip to content

Commit e86d520

Browse files
committed
Adding missing permissions to add ownerref on apikeyapproval
Signed-off-by: Eguzki Astiz Lezaun <eastizle@redhat.com>
1 parent 4058346 commit e86d520

3 files changed

Lines changed: 378 additions & 14 deletions

File tree

config/rbac/role.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ rules:
1818
- devportal.kuadrant.io
1919
resources:
2020
- apikeyapprovals
21+
- apikeyrequests
22+
- apiproducts
2123
verbs:
2224
- create
25+
- delete
2326
- get
2427
- list
2528
- patch
@@ -36,19 +39,6 @@ rules:
3639
- get
3740
- patch
3841
- update
39-
- apiGroups:
40-
- devportal.kuadrant.io
41-
resources:
42-
- apikeyrequests
43-
- apiproducts
44-
verbs:
45-
- create
46-
- delete
47-
- get
48-
- list
49-
- patch
50-
- update
51-
- watch
5242
- apiGroups:
5343
- devportal.kuadrant.io
5444
resources:

internal/controller/apikeyapproval_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type APIKeyApprovalReconciler struct {
3838
Scheme *runtime.Scheme
3939
}
4040

41-
// +kubebuilder:rbac:groups=devportal.kuadrant.io,resources=apikeyapprovals,verbs=get;list;watch;update;patch
41+
// +kubebuilder:rbac:groups=devportal.kuadrant.io,resources=apikeyapprovals,verbs=get;list;watch;update;patch;delete
4242
// +kubebuilder:rbac:groups=devportal.kuadrant.io,resources=apikeyrequests,verbs=get;list;watch
4343

4444
// Reconcile handles reconciling all APIKeyApprovals in a single call. Any resource event should enqueue the

0 commit comments

Comments
 (0)