Skip to content

Commit f356e1e

Browse files
committed
Cleanup operator SA helm template
1 parent 8a8ddc1 commit f356e1e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

helm_chart/templates/operator-sa.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,4 @@ metadata:
99
imagePullSecrets:
1010
- name: {{ .Values.registry.imagePullSecrets }}
1111
{{- end }}
12-
13-
{{- $watchNamespace := include "mongodb-kubernetes-operator.namespace" . | list }}
14-
{{- if .Values.operator.watchNamespace }}
15-
{{- $watchNamespace = regexSplit "," .Values.operator.watchNamespace -1 }}
16-
{{- $watchNamespace = concat $watchNamespace (include "mongodb-kubernetes-operator.namespace" . | list) | uniq }}
17-
{{- end }}
18-
19-
{{- $roleScope := "Role" -}}
20-
{{- if or (gt (len $watchNamespace) 1) (eq (first $watchNamespace) "*") }}
21-
{{- $roleScope = "ClusterRole" }}
22-
{{- end }}
2312
{{- end }} {{/* if .Values.operator.createOperatorServiceAccount */}}

0 commit comments

Comments
 (0)