Skip to content

Commit

Permalink
Fix RBAC for getting started
Browse files Browse the repository at this point in the history
Namespace was wrong in clusterrolebinding. Instead of default which
is used in examples, we need getting started namespace.
  • Loading branch information
khrm authored and tekton-robot committed Jun 8, 2022
1 parent 180a095 commit 8ddb09d
Showing 1 changed file with 29 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/getting-started/rbac/admin-role.yaml

This file was deleted.

29 changes: 29 additions & 0 deletions docs/getting-started/rbac/admin-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: tekton-triggers-example-sa
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: triggers-example-eventlistener-binding
subjects:
- kind: ServiceAccount
name: tekton-triggers-example-sa
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: tekton-triggers-eventlistener-roles
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: triggers-example-eventlistener-clusterbinding
subjects:
- kind: ServiceAccount
name: tekton-triggers-example-sa
namespace: getting-started
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: tekton-triggers-eventlistener-clusterroles

0 comments on commit 8ddb09d

Please # to comment.