apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata: # kpt-merge: /executor
  name: executor
  annotations:
    workflows.argoproj.io/description: |
      Recomended minimum permissions for `pns` executor.
rules:
  - apiGroups:
      - argoproj.io
    resources:
      - workflowtaskresults
    verbs:
      - create
      - patch
  - apiGroups:
      - ""
    resources:
      - pods
    verbs:
      - watch
  - apiGroups:
      - ""
    resources:
      - pods/log
    verbs:
      - get
