Skip to content

Commit e63fe32

Browse files
committed
Fix YAML document separator in operator RBAC
Helm doesn't render telemetry `ClusterRole` if webhook RBAC is not rendered due to one of the conditions.
1 parent f356e1e commit e63fe32

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

config/rbac/operator-roles.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ rules:
1313
- clustermongodbroles
1414
---
1515
# Source: mongodb-kubernetes/templates/operator-roles.yaml
16-
---
1716
# Additional ClusterRole for clusterVersionDetection
1817
kind: ClusterRole
1918
apiVersion: rbac.authorization.k8s.io/v1

helm_chart/templates/operator-roles.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ subjects:
173173
{{- end }}
174174

175175
{{- end }}
176-
---
177176

178177
{{/* This cluster role and binding is necessary to allow the operator to automatically register ValidatingWebhookConfiguration. */}}
179178
{{- if and .Values.operator.webhook.registerConfiguration .Values.operator.webhook.installClusterRole }}
180179
{{- if not (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "mongodb-kubernetes-operator-mongodb-webhook") }}
180+
---
181181
kind: ClusterRole
182182
apiVersion: rbac.authorization.k8s.io/v1
183183
metadata:

0 commit comments

Comments
 (0)