From 509de8c356c3090ad5648bdf837f5f672a2d1d47 Mon Sep 17 00:00:00 2001 From: Mikalai Radchuk <509198+m1kola@users.noreply.github.com> Date: Mon, 14 Jul 2025 10:39:34 +0200 Subject: [PATCH] Fix YAML document separator in operator RBAC Helm doesn't render webhook `ClusterRole` if `clustermongodbroles` RBAC is not rendered due to `operator.enableClusterMongoDBRoles` being set to `false`. --- helm_chart/templates/operator-roles.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm_chart/templates/operator-roles.yaml b/helm_chart/templates/operator-roles.yaml index 2e51ff648..22aaffbcc 100644 --- a/helm_chart/templates/operator-roles.yaml +++ b/helm_chart/templates/operator-roles.yaml @@ -142,9 +142,9 @@ subjects: namespace: {{ include "mongodb-kubernetes-operator.namespace" $ }} {{- end }} ---- {{- if .Values.operator.enableClusterMongoDBRoles }} +--- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: