From ff42b262785edc343bea0f3388897ce016cfc20e Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Thu, 17 Jul 2025 14:11:02 +0200 Subject: [PATCH 1/2] fix: Add RBAC permission to patch events --- deploy/helm/kafka-operator/templates/roles.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/helm/kafka-operator/templates/roles.yaml b/deploy/helm/kafka-operator/templates/roles.yaml index d92d86de..79a6c5f6 100644 --- a/deploy/helm/kafka-operator/templates/roles.yaml +++ b/deploy/helm/kafka-operator/templates/roles.yaml @@ -163,6 +163,7 @@ rules: - events verbs: - create + - patch {{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }} - apiGroups: - security.openshift.io From 6c24cc5301428a05de1fe0a0c27289e968b2585e Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 21 Jul 2025 10:33:53 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1ed0d3e..fede22d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ All notable changes to this project will be documented in this file. - The default Kubernetes cluster domain name is now fetched from the kubelet API unless explicitly configured. - This requires operators to have the RBAC permission to get nodes/proxy in the apiGroup "". The helm-chart takes care of this. - The CLI argument `--kubernetes-node-name` or env variable `KUBERNETES_NODE_NAME` needs to be set. The helm-chart takes care of this. +- The operator helm-chart now grants RBAC `patch` permissions on `events.k8s.io/events`, + so events can be aggregated (e.g. "error happened 10 times over the last 5 minutes") ([#879]). ### Fixed @@ -61,6 +63,7 @@ All notable changes to this project will be documented in this file. [#866]: https://github.com/stackabletech/kafka-operator/pull/866 [#868]: https://github.com/stackabletech/kafka-operator/pull/868 [#878]: https://github.com/stackabletech/kafka-operator/pull/878 +[#879]: https://github.com/stackabletech/kafka-operator/pull/879 ## [25.3.0] - 2025-03-21