summaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/deploy/00-init/gloo/templates/24-namespace-clusterrolebinding-ingress.yaml
blob: 7ef5cbaee4d1561ed8173b2b2e9fe5a3c2ca5fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{- if .Values.rbac.create }}

{{- if .Values.ingress.enabled }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: gloo-role-binding-ingress-{{ .Release.Namespace }}
  labels:
    app: gloo
    gloo: rbac
subjects:
- kind: ServiceAccount
  name: default
  namespace: {{ .Release.Namespace }}
roleRef:
  kind: ClusterRole
  name: gloo-role-ingress
  apiGroup: rbac.authorization.k8s.io

{{- end -}}

{{- end -}}