From 6bd2f848eb8c5f954f8d67edc0195cdd8ab20281 Mon Sep 17 00:00:00 2001 From: Mikalai Radchuk <509198+m1kola@users.noreply.github.com> Date: Fri, 11 Jul 2025 16:30:38 +0200 Subject: [PATCH] Fix telemetry RBAC template --- helm_chart/templates/operator-roles.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm_chart/templates/operator-roles.yaml b/helm_chart/templates/operator-roles.yaml index 22aaffbcc..debb8193c 100644 --- a/helm_chart/templates/operator-roles.yaml +++ b/helm_chart/templates/operator-roles.yaml @@ -255,7 +255,6 @@ rules: - nodes verbs: - list -{{- end}} --- # ClusterRoleBinding for clusterVersionDetection kind: ClusterRoleBinding @@ -270,4 +269,5 @@ subjects: - kind: ServiceAccount name: {{ .Values.operator.name }} namespace: {{ include "mongodb-kubernetes-operator.namespace" . }} -{{- end }} + {{- end}}{{/* if ne $telemetry.installClusterRole false */}} +{{- end }}{{/* if ne $telemetry.enabled false */}}