如何通过Git挂载Airflow DAG?

时间:2019-06-26 08:11:22

标签: airflow

发现在airflow.cfg中可以“通过Git安装DAG”:

# Git credentials and repository for DAGs mounted via Git (mutually exclusive with volume claim)
git_repo = https://username@bitbucket.org/repo.git
git_branch = master
git_subpath =
# Use git_user and git_password for user authentication or git_ssh_key_secret_name and git_ssh_key_secret_key
# for SSH authentication
git_user = username
git_password = pass
git_sync_root = /git
git_sync_dest = repo
# Mount point of the volume if git-sync is being used.
# i.e. /home/user/airflow/dags
git_dags_folder_mount_point = /home/user/airflow/dags

无法找到与此有关的任何文档。

我是否正确理解,我能够通过仅推送到指定的分支就可以使用Git存储库将DAG部署到Airflow生产服务器?

无法执行该操作,请多加考虑。

0 个答案:

没有答案