Skip to content

Commit

Permalink
add permission of deleting KongRoute in RBAC (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
randmonkey authored Oct 25, 2024
1 parent 550c937 commit c27f6e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion config/rbac/role/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ rules:
- kongdataplaneclientcertificates
- kongkeys
- kongkeysets
- kongroutes
- kongservices
- kongsnis
- kongtargets
Expand Down Expand Up @@ -235,6 +234,17 @@ rules:
- patch
- update
- watch
- apiGroups:
- configuration.konghq.com
resources:
- kongroutes
verbs:
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- coordination.k8s.io
resources:
Expand Down
2 changes: 1 addition & 1 deletion controller/konnect/reconciler_generic_rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ package konnect
//+kubebuilder:rbac:groups=configuration.konghq.com,resources=kongkeysets/status,verbs=update;patch
//+kubebuilder:rbac:groups=configuration.konghq.com,resources=kongkeysets/finalizers,verbs=update;patch

//+kubebuilder:rbac:groups=configuration.konghq.com,resources=kongroutes,verbs=get;list;watch;update;patch
//+kubebuilder:rbac:groups=configuration.konghq.com,resources=kongroutes,verbs=get;list;watch;update;patch;delete
//+kubebuilder:rbac:groups=configuration.konghq.com,resources=kongroutes/status,verbs=update;patch
//+kubebuilder:rbac:groups=configuration.konghq.com,resources=kongroutes/finalizers,verbs=update;patch

Expand Down

0 comments on commit c27f6e0

Please sign in to comment.