Skip to content

Commit

Permalink
fix: allow operator SA to create/update events (#623)
Browse files Browse the repository at this point in the history
Closes COO-526

Signed-off-by: Simon Pasquier <[email protected]>
  • Loading branch information
simonpasquier authored Nov 11, 2024
1 parent cae2c9f commit 6cae01e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
14 changes: 12 additions & 2 deletions bundle/manifests/observability-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ metadata:
categories: Monitoring
certified: "false"
containerImage: observability-operator:0.4.2
createdAt: "2024-11-05T06:54:25Z"
createdAt: "2024-11-08T16:10:36Z"
description: A Go based Kubernetes operator to setup and manage highly available
Monitoring Stack using Prometheus, Alertmanager and Thanos Querier.
operators.operatorframework.io/builder: operator-sdk-v1.37.0
Expand Down Expand Up @@ -296,7 +296,6 @@ spec:
- ""
resources:
- endpoints
- events
- namespaces
- nodes
- persistentvolumeclaims
Expand All @@ -307,6 +306,17 @@ spec:
- get
- list
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
Expand Down
12 changes: 11 additions & 1 deletion deploy/operator/observability-operator-cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ rules:
- ""
resources:
- endpoints
- events
- namespaces
- nodes
- persistentvolumeclaims
Expand All @@ -34,6 +33,17 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
Expand Down
4 changes: 4 additions & 0 deletions pkg/controllers/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package controllers

// RBAC for sending Kubernetes events
//+kubebuilder:rbac:groups="",resources=events,verbs=create;update;patch

0 comments on commit 6cae01e

Please sign in to comment.