k8s-config/serviceaccounts/tekton-bot.yaml

31 lines
695 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: tekton-bot
secrets:
- name: git-credentials
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: tekton-bot-eventlistener-binding
subjects:
- kind: ServiceAccount
name: tekton-bot
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: tekton-triggers-eventlistener-roles
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tekton-bot-eventlistener-clusterbinding
subjects:
- kind: ServiceAccount
name: tekton-bot
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: tekton-triggers-eventlistener-clusterroles