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

   ### Description
   
   The airflow CLI has a set of [variables 
commands](https://github.com/apache/airflow/blob/main/airflow/cli/commands/variable_command.py).
 It would be useful to support a command like `airflow variables sync 
file.json` that
   
   1. adds new variables from the file to airflow's variables
   2. updates values of variables that have changed
   3. removes variables that are no longer available in the file
   
   ### Use case/motivation
   
   We currently manage our airflow variables as an ansible configuration on our 
team and these variables are version controlled. Different teams will have 
different solutions to manage airflow variables. If these variables are updated 
via a continuous deployment (CD) pipeline, every airflow user will have to 
implement the sync feature.
   
   The feature is fairly common (in our understanding of how people use 
airflow) and trivial to implement. However, it would help make deployments 
simpler and quicker to setup for everyone.
   
   The individual building blocks for this change are already available. The 
(design/philosophical) choice is between making Airflow easier to use and 
keeping airflow minimalistic i.e. provide the building blocks for users to 
build on. I'm unsure what the exact design philosophy for Airflow and I'm 
hoping this ticket can help provide clarity.
   
   ### 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