wc-s opened a new issue #18400:
URL: https://github.com/apache/airflow/issues/18400


   ### Description
   
   Currently, to inject custom annotations into airflow pods, we can use such a 
snippet in the `values.yaml`:
   ```
   airflowPodAnnotations:
     my-annotation: "foo"
   ```
   
   However, this will inject the annotation to the pods of all airflow 
components (scheduler.. worker.. etc.). There is no way to inject different 
annotations to different components.
   
   It would be nice to be able to inject different annotations to different 
components with such a `values.yaml`:
   ```
   workers:
     podAnnotations:
       my-annotation: "foo"
   
   scheduler:
     podAnnotations:
       my-annotation: "bar"
   ```
   
   
   ### Use case/motivation
   
   Generally, it's not a bad idea to make things more customizable to the chart 
users.
   
   Specifically for my use case, the motivation is because we are using vault 
sidecar to inject secrets into our airflow pods: 
https://www.vaultproject.io/docs/platform/k8s/injector#secrets-via-annotations
   
   And we wish to have different vault connection settings for the different 
pods.
   
   ### 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