Files
pikasTech-agentrun/deploy/templates/tekton/rbac.yaml
T
2026-05-29 11:14:59 +08:00

37 lines
925 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: agentrun-ci
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: agentrun-v01-tekton-runner
namespace: agentrun-ci
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: agentrun-v01-tekton-runner
namespace: agentrun-ci
rules:
- apiGroups: ["tekton.dev"]
resources: ["pipelineruns", "taskruns"]
verbs: ["get", "list", "watch", "create", "patch", "update"]
- apiGroups: [""]
resources: ["pods", "pods/log", "secrets", "configmaps", "persistentvolumeclaims"]
verbs: ["get", "list", "watch", "create", "patch", "update", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: agentrun-v01-tekton-runner
namespace: agentrun-ci
subjects:
- kind: ServiceAccount
name: agentrun-v01-tekton-runner
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: agentrun-v01-tekton-runner