Skip to content

Commit 156df5e

Browse files
committed
RBAC to give Operator SA permissions
1 parent 792445e commit 156df5e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

config/rbac/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ resources:
1818
- metrics_auth_role.yaml
1919
- metrics_auth_role_binding.yaml
2020
- metrics_reader_role.yaml
21+
- rsct_operator_scc_modifier.yaml
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: rsct-operator-scc-modifier
5+
rules:
6+
- apiGroups: ["security.openshift.io"]
7+
resources: ["securitycontextconstraints"]
8+
verbs: ["get", "list", "watch", "update", "patch"]
9+
---
10+
apiVersion: rbac.authorization.k8s.io/v1
11+
kind: ClusterRoleBinding
12+
metadata:
13+
name: rsct-operator-scc-modifier-binding
14+
roleRef:
15+
apiGroup: rbac.authorization.k8s.io
16+
kind: ClusterRole
17+
name: rsct-operator-scc-modifier
18+
subjects:
19+
- kind: ServiceAccount
20+
name: rsct-operator-controller-manager
21+
namespace: rsct-operator-system

0 commit comments

Comments
 (0)