From 331621cd8c4c35f2311e517cde5c6562a76417ee Mon Sep 17 00:00:00 2001 From: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> Date: Mon, 17 Nov 2025 13:47:13 +0100 Subject: [PATCH 1/2] chore: remove unused RBAC role --- deploy/helm/kafka-operator/templates/deployment.yaml | 2 -- deploy/helm/kafka-operator/templates/roles-kafka.yaml | 5 ----- rust/operator-binary/src/main.rs | 6 ------ 3 files changed, 13 deletions(-) delete mode 100644 deploy/helm/kafka-operator/templates/roles-kafka.yaml diff --git a/deploy/helm/kafka-operator/templates/deployment.yaml b/deploy/helm/kafka-operator/templates/deployment.yaml index c12fc872..4601af6f 100644 --- a/deploy/helm/kafka-operator/templates/deployment.yaml +++ b/deploy/helm/kafka-operator/templates/deployment.yaml @@ -79,8 +79,6 @@ spec: value: {{ .Values.kubernetesClusterDomain | quote }} {{- end }} {{- include "telemetry.envVars" . | nindent 12 }} - - name: KAFKA_BROKER_CLUSTERROLE - value: {{ include "operator.fullname" . }}-kafka-broker-clusterrole volumes: - name: config-spec configMap: diff --git a/deploy/helm/kafka-operator/templates/roles-kafka.yaml b/deploy/helm/kafka-operator/templates/roles-kafka.yaml deleted file mode 100644 index d1497b4f..00000000 --- a/deploy/helm/kafka-operator/templates/roles-kafka.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: {{ include "operator.fullname" . }}-kafka-broker-clusterrole -rules: [] diff --git a/rust/operator-binary/src/main.rs b/rust/operator-binary/src/main.rs index 4a3da6e3..aafb0717 100644 --- a/rust/operator-binary/src/main.rs +++ b/rust/operator-binary/src/main.rs @@ -61,8 +61,6 @@ struct Opts { #[derive(clap::Parser)] struct KafkaRun { - #[clap(long, env)] - kafka_broker_clusterrole: String, #[clap(flatten)] common: RunArguments, } @@ -198,10 +196,6 @@ async fn main() -> anyhow::Result<()> { Ok(()) } -pub struct ControllerConfig { - pub broker_clusterrole: String, -} - fn references_config_map( kafka: &DeserializeGuard, config_map: &DeserializeGuard, From b719508e387990f429ed5c7ff2af73a789264bcd Mon Sep 17 00:00:00 2001 From: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> Date: Mon, 17 Nov 2025 14:07:52 +0100 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e062966..73638d07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,12 @@ All notable changes to this project will be documented in this file. - Refactor: move server configuration properties from the command line to configuration files. ([#911]). +### Removed + +- Refactor: remove unused RBAC cluster role ([#914]). + [#911]: https://github.com/stackabletech/kafka-operator/pull/911 +[#914]: https://github.com/stackabletech/kafka-operator/pull/914 ## [25.11.0] - 2025-11-07