Skip to content

Commit 5d92a36

Browse files
authored
fix: adding rbac needed to run tests (#7318)
1 parent 7acf2a5 commit 5d92a36

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

components/konflux-ci/base/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ resources:
66
- appstudio-pipelines-runner-rolebinding.yaml
77
- pod-logs-reader-role.yaml
88
- pod-logs-reader-rolebinding.yaml
9+
- test-runner-cluster-role.yaml
10+
- test-runner-rolebinding.yaml
911

1012
# Skip applying the Tekton/PaC operands while the Tekton/PaC operator is being installed.
1113
# See more information about this option, here:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: test-runner
5+
rules:
6+
- apiGroups: ["appstudio.redhat.com"]
7+
resources: ["imagerepositories"]
8+
verbs: ["get", "list", "watch"]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: RoleBinding
3+
metadata:
4+
name: test-runner-rolebinding
5+
roleRef:
6+
apiGroup: rbac.authorization.k8s.io
7+
kind: ClusterRole
8+
name: test-runner
9+
subjects:
10+
- kind: ServiceAccount
11+
name: appstudio-pipeline
12+
namespace: konflux-ci

0 commit comments

Comments
 (0)