Skip to content

Commit

Permalink
Merge branch 'master' into ks20drptcrtype
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrancisc authored Mar 7, 2024
2 parents ff5afbd + 7f514dd commit 02f70ca
Showing 1 changed file with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions deploy/toolchaincluster/member-sa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: toolchaincluster-member
namespace: {{.Namespace}}
rules:
- apiGroups:
- toolchain.dev.openshift.com
resources:
- "*"
verbs:
- "*"
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: toolchaincluster-{{.Namespace}}
rules:
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- ""
resources:
- users
- groups
verbs:
- impersonate
- apiGroups:
- toolchain.dev.openshift.com
resources:
- "spacerequests"
verbs:
- "*"
- apiGroups:
- toolchain.dev.openshift.com
resources:
- spacerequests/finalizers
verbs:
- update
- apiGroups:
- toolchain.dev.openshift.com
resources:
- spacerequests/status
verbs:
- get
- patch
- update
- apiGroups:
- route.openshift.io
resources:
- routes
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- "namespaces"
verbs:
- "get"
- "list"
- "watch"
- apiGroups:
- ""
resources:
- "secrets"
- "serviceaccounts/token"
verbs:
- "*"
- apiGroups:
- toolchain.dev.openshift.com
resources:
- "spacebindingrequests"
verbs:
- "*"
- apiGroups:
- toolchain.dev.openshift.com
resources:
- spacebindingrequests/finalizers
verbs:
- update
- apiGroups:
- toolchain.dev.openshift.com
resources:
- spacebindingrequests/status
verbs:
- get
- patch
- update
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: toolchaincluster-{{.Namespace}}
subjects:
- kind: ServiceAccount
name: toolchaincluster-member
namespace: {{.Namespace}}
roleRef:
kind: ClusterRole
name: toolchaincluster-{{.Namespace}}
apiGroup: rbac.authorization.k8s.io

0 comments on commit 02f70ca

Please sign in to comment.