Skip to content

Commit 689ce07

Browse files
authored
fix: Add RBAC permission to patch events (#745)
* fix: Add RBAC permission to patch events * Update deploy/helm/opa-operator/templates/roles.yaml * Fix * changelog
1 parent d3e23ec commit 689ce07

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ All notable changes to this project will be documented in this file.
4747
- The default Kubernetes cluster domain name is now fetched from the kubelet API unless explicitly configured.
4848
- This requires operators to have the RBAC permission to get nodes/proxy in the apiGroup "". The helm-chart takes care of this.
4949
- The CLI argument `--kubernetes-node-name` or env variable `KUBERNETES_NODE_NAME` needs to be set. The helm-chart takes care of this.
50+
- The operator helm-chart now grants RBAC `patch` permissions on `events.k8s.io/events`,
51+
so events can be aggregated (e.g. "error happened 10 times over the last 5 minutes") ([#745]).
5052

5153
### Fixed
5254

@@ -74,6 +76,7 @@ All notable changes to this project will be documented in this file.
7476
[#737]: https://github.com/stackabletech/opa-operator/pull/737
7577
[#743]: https://github.com/stackabletech/opa-operator/pull/743
7678
[#744]: https://github.com/stackabletech/opa-operator/pull/744
79+
[#745]: https://github.com/stackabletech/opa-operator/pull/745
7780

7881
## [25.3.0] - 2025-03-21
7982

deploy/helm/opa-operator/templates/roles.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ rules:
8282
- events.k8s.io
8383
resources:
8484
- events
85-
- patch
8685
verbs:
8786
- create
8887
- patch
@@ -134,6 +133,7 @@ rules:
134133
- events
135134
verbs:
136135
- create
136+
- patch
137137
{{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }}
138138
- apiGroups:
139139
- security.openshift.io

0 commit comments

Comments
 (0)