Skip to content

Conversation

@FloChehab
Copy link
Contributor

Hello, here is a small fix on the chart to prevent an airflow exception due to https://github.com/apache/airflow/blob/master/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py#L490.

I think adding a test for this is bit hard, but I am opened to suggestion.

More info:

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.

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Jan 13, 2021
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.
@FloChehab FloChehab force-pushed the fix-chart-read-pod-events branch from b226747 to 4cda531 Compare February 8, 2021 12:31
@FloChehab
Copy link
Contributor Author

Hello @kaxil, maybe you have time to review this PR?

@kaxil kaxil merged commit 90ab60b into apache:master Feb 10, 2021
@FloChehab FloChehab deleted the fix-chart-read-pod-events branch February 10, 2021 07:41
danielhoherd pushed a commit to astronomer/airflow-chart that referenced this pull request Mar 16, 2021
In order for the KubernetesExecutor to pick up tasks from dead schedulers, it needs to have the ability to patch existing pods s.t. the watcher thread can read the pod statuses.

Add events list permissions <apache/airflow#13649>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:helm-chart Airflow Helm Chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants