Skip to content

Commit

Permalink
Fix pod launcher role permissions to list events in chart (#13649)
Browse files Browse the repository at this point in the history
When using the KubernetesPodOperator with
log_events_on_failure=True, and the pod exits,
the executor needs to access the events in the namespace.

Before this resulted in an exception when using the chart
as this it was not permitted by the pod-launcher role.
  • Loading branch information
Florent Chehab authored Feb 10, 2021
1 parent 9b7852e commit 90ab60b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chart/templates/rbac/pod-launcher-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,11 @@ rules:
verbs:
- "create"
- "get"
- apiGroups:
- ""
resources:
- "events"
verbs:
- "list"

{{- end }}

0 comments on commit 90ab60b

Please sign in to comment.