[BUGFIX] podMutations are now deployed correctly to airflow_local_settings.py - #10302
[BUGFIX] podMutations are now deployed correctly to airflow_local_settings.py#10302alikhtag wants to merge 5 commits into
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
|
|
@dimberman - it looks cool, but I want your opinion here as well :) |
|
Why are we not just having podMutation as a string and allowing people to write whatever function they want? I don't want to start prescribing values or we'll maintain it forever. |
Hmm this yaml configuration of |
|
I don't understand why |
|
I'd say those were transient errors. I re-run all jobs now to see if it helps |
|
@dimberman does current implementation satisfy the maintainability requirement? |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Hi @alikhtag, would you like to rebase this PR so we can merge it? If not I can take this on and tag you as the author. |
|
Also you're gonna need to make the pod_mutation_hook function compliant with 2.0 :) |
Hi @dimberman. What do you refer to |
|
@alikhtag can you please get the tests to pass? Would be glad to merge once they are passing :). |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
|
@alikhtag are you interested in finishing this? |
|
I'm going to close this since all |
There is a BUG in helm chart where, setting anything in
podMutationinvalues.yamldoes not seem to affect anything. Currently thesepodMutationswill not apply during deployment toairflow_local_settings.py, hence they will not be used by Kubernetes Executor and Pod Operator to correctly settaintsandaffinitiesin pod configuration.This PR should fix this, but only if
.Values.scheduler.airflowLocalSettingswere not set but it seems it was by design originally.If you like to reproduce the bug:
KubernetesExecutorfor theAirflowdeployment.tolerationand/oraffinityinpodMutation.tolerationsandaffinitiesset in their pod configuration.