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

   ### Description
   
   Right now there are only two pre-defined hooks:
   
   * `migrateDatabaseJob`
   * `createUserJob`
   
   It'd be very useful if there's an `extraJobs` section.
   
   ### Use case/motivation
   
   Some Airflow deployments run custom CLI commands as deployment jobs. It's 
also very straightforward to implement this feature since we have the job 
template in the chart, just need to generalize it.
   
   ```
   extraJobs:
     - name: import-vars
       command: airflow
       args: ["variables", "import", "..."]
     ...
   ```
   
   Job template:
   ```
   {{- range .Values.extraJobs }}
   [use the array element instead of .Values.jobName]
   ```
   
   The same goes for the service account.
   
   ### 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