[ 
https://issues.apache.org/jira/browse/AIRFLOW-5066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16972423#comment-16972423
 ] 

ASF subversion and git services commented on AIRFLOW-5066:
----------------------------------------------------------

Commit 99f22f3f95fd580bfa68d3c582e2bc33b17c6db4 in airflow's branch 
refs/heads/v1-10-stable from Julien Surloppe
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=99f22f3 ]

[AIRFLOW-5066] allow k8s fieldref substitution (#5680)

rebased on v1-10-stable due to complete k8s refactor on master

> Usage of FieldRef in Kubernetes env execution
> ---------------------------------------------
>
>                 Key: AIRFLOW-5066
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5066
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: executors
>    Affects Versions: 1.10.4, 2.0.0, 1.10.5
>            Reporter: Julien Surloppe
>            Priority: Minor
>
> In Kubernetes, dynamic pod metadata can be set as environment variables and 
> then used as substitution in other environment variables.
> Currently in Airflow, the pod request creation set those variables after the 
> ones that can use substitutions so them doen't do it.
> Example usage is:
>  * define a variable SPARK_LOCAL_IP using the pod metadata status.podIP
>  * using this variable in Spark options as 
> -Dspark.driver.host=$(SPARK_LOCAL_IP)
> I will do a PR to fix this behavior.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to