-
Notifications
You must be signed in to change notification settings - Fork 33
/
rbac.yaml
40 lines (35 loc) · 977 Bytes
/
rbac.yaml
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
30
31
32
33
34
35
36
37
38
39
40
# Copyright (c) 2022 SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
apiVersion: v1
kind: ServiceAccount
metadata:
name: gatekeeper-policy-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: gatekeeper-policy-manager-crd-view
rules:
- apiGroups: ["constraints.gatekeeper.sh"]
resources: ["*"]
verbs: ["get", "list", "watch"]
- apiGroups: ["templates.gatekeeper.sh"]
resources: ["*"]
verbs: ["get", "list", "watch"]
- apiGroups: ["config.gatekeeper.sh"]
resources: ["*"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: gatekeeper-policy-manager-crd-view
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: gatekeeper-policy-manager-crd-view
subjects:
- kind: ServiceAccount
name: gatekeeper-policy-manager
namespace: gatekeeper-system