Skip to content

Commit

Permalink
Create templates with member ToolchainCluster-related manifests (#537)
Browse files Browse the repository at this point in the history
* add member sa resources
---------

Co-authored-by: Matous Jobanek <mjobanek@redhat.com>
Co-authored-by: Alexey Kazakov <alkazako@redhat.com>
  • Loading branch information
3 people authored Mar 7, 2024
1 parent 49dd75a commit 7f514dd
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 7f514dd

Please sign in to comment.