Refactor Distributed Analytics project structure
[demo.git] / vnfs / DAaaS / deploy / 00-init / gloo / templates / 23-namespace-clusterrolebinding-gateway.yaml
1 {{- if .Values.rbac.create }}
2
3 {{- if .Values.gateway.enabled }}
4 kind: ClusterRoleBinding
5 apiVersion: rbac.authorization.k8s.io/v1
6 metadata:
7   name: gloo-role-binding-gateway-{{ .Release.Namespace }}
8   labels:
9     app: gloo
10     gloo: rbac
11 subjects:
12 - kind: ServiceAccount
13   name: default
14   namespace: {{ .Release.Namespace }}
15 roleRef:
16   kind: ClusterRole
17   name: gloo-role-gateway
18   apiGroup: rbac.authorization.k8s.io
19
20 {{- end -}}
21
22 {{- end -}}