Skip to content

Commit e370e1f

Browse files
committed
Fix telemetry RBAC template
1 parent 7f580ac commit e370e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helm_chart/templates/operator-roles.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ rules:
255255
- nodes
256256
verbs:
257257
- list
258-
{{- end}}
259258
---
260259
# ClusterRoleBinding for clusterVersionDetection
261260
kind: ClusterRoleBinding
@@ -270,4 +269,5 @@ subjects:
270269
- kind: ServiceAccount
271270
name: {{ .Values.operator.name }}
272271
namespace: {{ include "mongodb-kubernetes-operator.namespace" . }}
273-
{{- end }}
272+
{{- end}}{{/* if ne $telemetry.installClusterRole false */}}
273+
{{- end }}{{/* if ne $telemetry.enabled false */}}

0 commit comments

Comments
 (0)