Flametaa opened a new issue, #43801:
URL: https://github.com/apache/airflow/issues/43801

   ### Description
   
   I need to add an env variable in my spark pods that exposes the 
`SPARK_APPLICATION_NAME`, the issue here is that the operator adds a random 
suffix at the end, so I can't really add it at the level of the scheduler since 
it doesn't have access to the new name.
   
   ### Use case/motivation
   
   I want the SparkKubernetesOperator to add an env variable containing the 
`SPARK_APPLICATION_NAME`, or make the random suffix fixed across the same dag 
run (exposing it as a macro?)
   
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to