-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git sync for plugins in the Helm Chart #11708
Comments
Hi mik-laj, I'll take this up |
Assigned. We are migrating to the new unit test framework, so you will have to wait a while before you can write tests ... or if you have the patience you can also write in the old framework, but this is very limiting and frustrating. |
I am getting a sense of the problem statement. I should be adding two new options like |
Yes. It would be good to support the other configuration options for gitSync as well.
By default, Line 28 in 9320fe6
https://airflow.readthedocs.io/en/latest/configurations-ref.html#plugins-folder |
We have already finished the migration to the new framework. Nothing is blocking anymore to work on this change. |
any progress on this? |
The user-community chart (not the official) has implemented support for using plugins from within your DAGs git-repo. (See PR airflow-helm/charts#390) You only need to correctly set your |
It is possible to mount the plugins via git sync today, if you keep your plugins with your DAGs, e.g.;
You can then just set an
❗ Edit: You probably don't want to do this. See the excellent explanation from |
This is a good idea to have GitSync for plugins, but I am afraid the solution where you keep your plugins together with DAGs is a very bad idea for Airflow 2, one that should be heavily discouraged. There are two reasons (actually the root cause is isolation and security):
But more importantly:
Generally speaking - you SHOULD separate DAGs and Plugins. Access to modigy those two in many cases should be controlled differently for security reasons. |
Is this still on the roadmap? It seems from the above that the cleanest solution would be to replicate the current git-sync setup used for dags (in the scheduler or dag processor) for a "plugins" repo in scheduler/workers/webserver? |
Just to set expectations and explain how it works here - @tomrutter - as everything in open-source, things get done when somene does it :). There is no "magical" management and roadmap planning that you can have single authoritative response on. There is no roadmap unless someone decides to take on responsibility and manage, prepare and follow up the roadmap. That someone can be you if you want to get things implemented (which means often implementing things yourself and providing a PR or finding someone who would volunteer and do it. You are absolutely free to take a lead on it :) |
And just to add a bit - If you look at our repo - Airflow is created by >2200 contrbutors, mostly people like you who wanted something they missed and added it :). Adding such a feature is a nice way not only good for you (because you will be able to use it) but also for others (they will be able to use it too) but also a great way to contribute back for the software you got absolutely for free :) |
Thanks! I will have a closer look and see if what I've done here could be submitted as PR. |
Would be great. |
hey guys, just curious: is this approach even possible? I mean: sync plugins with git-sync. I had impression that 'plugins' must be in place before airflow starts. Otherwise if you start airflow with empty folder and then try to put new modules - it returns exception 'plugin is not registered'. Correct me if i'm wrong. |
There are various scenarios and cases when the plugins can be reloaded: https://airflow.apache.org/docs/apache-airflow/stable/plugins.html#when-are-plugins-re-loaded |
any progress on this? can anyone tell me how can i sync the plugins from github? Appreciate your support. Thank |
From what I see @quocanh-upmesh (Also see the docs above) nothing changed. As explained above - things get implemented here when somoene implements it (and the most certain way to get somethig implemented is to either implement it or find someone who will do it). If you look above this would not only require change in the Helm Chart to sync the dags but also likely restarting the right components when they change (depending on the type of plugin and component). And answering your question - apparently there is no progress, otherwise semeone who would work on it would likely mention it here. |
Hello,
Helm Chart currently supports DAG sync, but some users have the need to sync plugins in a similar way as well.
It would be fantastic if Helm Chart would make it easy to set up sync
~/airflow/plugins
from a separate repository as well.Best regards,
Kamil Breguła
The text was updated successfully, but these errors were encountered: