From 6f9d37930b91427679c8042039d1fb569dea4f2f Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Thu, 17 Jul 2025 14:08:49 +0200 Subject: [PATCH 1/2] fix: Add RBAC permission to patch events --- deploy/helm/hdfs-operator/templates/roles.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/helm/hdfs-operator/templates/roles.yaml b/deploy/helm/hdfs-operator/templates/roles.yaml index 1a7e23c1..6d4583c7 100644 --- a/deploy/helm/hdfs-operator/templates/roles.yaml +++ b/deploy/helm/hdfs-operator/templates/roles.yaml @@ -178,6 +178,7 @@ rules: - events verbs: - create + - patch {{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }} - apiGroups: - security.openshift.io From b4672a485b980074201c349dac07ecce74696300 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 21 Jul 2025 10:31:36 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb484ee3..5bf998a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,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") ([#700]). ### Fixed @@ -63,6 +65,7 @@ All notable changes to this project will be documented in this file. [#696]: https://github.com/stackabletech/hdfs-operator/pull/696 [#697]: https://github.com/stackabletech/hdfs-operator/pull/697 [#699]: https://github.com/stackabletech/hdfs-operator/pull/699 +[#700]: https://github.com/stackabletech/hdfs-operator/pull/700 ## [25.3.0] - 2025-03-21