Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow suite runners read testrun objects #41

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions manifests/base/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,30 @@ rules:
- create
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: testrun-reader
labels:
app.kubernetes.io/name: etos-testrun-reader
app.kubernetes.io/part-of: etos
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
rules:
- apiGroups:
- "etos.eiffel-community.github.io"
resources:
- testruns
verbs:
- get
- list
- watch
- apiGroups:
- "etos.eiffel-community.github.io"
resources:
- testruns/status
verbs:
- get
- list
- watch
16 changes: 16 additions & 0 deletions manifests/base/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,19 @@ roleRef:
subjects:
- kind: ServiceAccount
name: etos-suite-starter
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
app.kubernetes.io/name: etos-suite-runner
app.kubernetes.io/part-of: etos
app.kubernetes.io/component: suite-runner
name: etos-sa-testrun-reader
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: testrun-reader
subjects:
- kind: ServiceAccount
name: etos-sa
Loading