kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: tekton-step-observer-cluster-access
  labels:
    app.kubernetes.io/component: controller
    app.kubernetes.io/instance: default
    app.kubernetes.io/part-of: tekton-pipelines
rules:
  - apiGroups:  [""]
    resources: ["pods", "pods/log", "events", "configmaps"]
    verbs: ["get", "list", "watch"]
  - apiGroups: ["tekton.dev"]
    resources: ["taskruns"]
    verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
  - apiGroups: ["tekton.dev"]
    resources: ["taskruns/status"]
    verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
#---
#
#kind: ClusterRole
#apiVersion: rbac.authorization.k8s.io/v1
#metadata:
#  name: tekton-pipelines-leader-election
#  labels:
#    app.kubernetes.io/instance: default
#    app.kubernetes.io/part-of: tekton-pipelines
#rules:
#  # We uses leases for leaderelection
#  - apiGroups: ["coordination.k8s.io"]
#    resources: ["leases"]
#    verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
