You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by ca...@apache.org on 2022/07/28 13:01:00 UTC

[rocketmq-operator] branch master updated: add event resource permission

This is an automated email from the ASF dual-hosted git repository.

caigy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-operator.git


The following commit(s) were added to refs/heads/master by this push:
     new 6431881  add event resource permission
     new b989e6f  Merge pull request #118 from gobbq/bugfix/add-event-resource-permission
6431881 is described below

commit 64318819e92e239e91df4ae526b1794510b58980
Author: 文泊 <xl...@alibaba-inc.com>
AuthorDate: Thu Jul 28 17:02:30 2022 +0800

    add event resource permission
---
 deploy/role.yaml | 7 +++++++
 main.go          | 1 +
 2 files changed, 8 insertions(+)

diff --git a/deploy/role.yaml b/deploy/role.yaml
index 3dfdc08..f75b84e 100644
--- a/deploy/role.yaml
+++ b/deploy/role.yaml
@@ -31,6 +31,13 @@ rules:
   - patch
   - update
   - watch
+- apiGroups:
+  - ""
+  resources:
+  - events
+  verbs:
+  - create
+  - patch
 - apiGroups:
   - ""
   resources:
diff --git a/main.go b/main.go
index 39a2099..9e97f4c 100644
--- a/main.go
+++ b/main.go
@@ -41,6 +41,7 @@ import (
 
 //+kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;watch;create;update;patch;delete
 //+kubebuilder:rbac:groups="",resources=configmaps,verbs=get;list;watch;create;update;patch;delete
+//+kubebuilder:rbac:groups="",resources=events,verbs=create;patch
 
 var (
 	scheme   = runtime.NewScheme()