blob: 35fb5eb0c48f0c47f87840317a451ab66ee1f821 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{{- if .Values.rbac.create }}
{{- if .Values.gateway.enabled }}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: gloo-role-gateway
labels:
app: gloo
gloo: rbac
rules:
- apiGroups: [""]
resources: ["pods", "services", "secrets", "endpoints", "configmaps"]
verbs: ["*"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get", "create"]
- apiGroups: ["gloo.solo.io"]
resources: ["settings", "upstreams","upstreamgroups", "proxies","virtualservices"]
verbs: ["*"]
- apiGroups: ["gateway.solo.io"]
resources: ["virtualservices", "gateways"]
verbs: ["*"]
{{- end -}}
{{- end -}}
|