From 60ea52680d65ba3dd889a24278ccb111e576e4f2 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 21 Jul 2025 10:53:37 +0200 Subject: [PATCH] fix: Add RBAC permission to patch events (#649) * fix: Add RBAC permission to patch events * changelog --- CHANGELOG.md | 3 +++ deploy/helm/superset-operator/templates/roles.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e1afe47..238aa31e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,8 @@ - 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") ([#649]). ### Fixed @@ -61,6 +63,7 @@ [#643]: https://github.com/stackabletech/superset-operator/pull/643 [#644]: https://github.com/stackabletech/superset-operator/pull/644 [#646]: https://github.com/stackabletech/superset-operator/pull/646 +[#649]: https://github.com/stackabletech/superset-operator/pull/649 ## [25.3.0] - 2025-03-21 diff --git a/deploy/helm/superset-operator/templates/roles.yaml b/deploy/helm/superset-operator/templates/roles.yaml index 93ecba02..d1004634 100644 --- a/deploy/helm/superset-operator/templates/roles.yaml +++ b/deploy/helm/superset-operator/templates/roles.yaml @@ -165,6 +165,7 @@ rules: - events verbs: - create + - patch {{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }} - apiGroups: - security.openshift.io