Refactor Distributed Analytics project structure
[demo.git] / vnfs / DAaaS / deploy / messaging / charts / strimzi-kafka-operator / templates / 031-RoleBinding-strimzi-cluster-operator-entity-operator-delegation.yaml
1 {{- $root := . -}}
2 {{- range append .Values.watchNamespaces .Release.Namespace }}
3 {{- if ne . "*" -}}
4 ---
5 apiVersion: rbac.authorization.k8s.io/v1beta1
6 kind: RoleBinding
7 metadata:
8   name: strimzi-cluster-operator-entity-operator-delegation
9   namespace: {{ . }}
10   labels:
11     app: {{ template "strimzi.name" $root }}
12     chart: {{ template "strimzi.chart" $root }}
13     component: entity-operator-role-binding
14     release: {{ $root.Release.Name }}
15     heritage: {{ $root.Release.Service }}
16 subjects:
17   - kind: ServiceAccount
18     name: strimzi-cluster-operator
19     namespace: {{ $root.Release.Namespace }}
20 roleRef:
21   kind: ClusterRole
22   name: strimzi-entity-operator
23   apiGroup: rbac.authorization.k8s.io
24 {{- end }}
25 {{- end }}