apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: airflow
  namespace: airflow
rules:
- apiGroups: [""]
  resources: ["pods"]
  verbs:
  - get
  - list
  - watch
  - create
  - delete
  - patch
- apiGroups: [""]
  resources: ["pods/log"]
  verbs:
  - get
  - list
- apiGroups: [""]
  resources: ["pods/exec"]
  verbs:
  - create
  - get
- apiGroups: [""]
  resources: ["events"]
  verbs:
  - list
