Skip to content

Commit 04ec315

Browse files
committed
Adding docs draft
1 parent 0e0b09f commit 04ec315

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/modules/airflow/pages/usage-guide/mounting-dags.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ For multiple DAGs, it is easier to expose them via `gitsync`, as shown below.
4242

4343
== Via `git-sync`
4444

45-
{git-sync}[git-sync] is a command that pulls a git repository into a local directory and is supplied as a sidecar container for use within Kubernetes.
45+
{git-sync}[git-sync] is a command that pulls a git repository into a local directory and is supplied as a sidecar container for use within Kubernetes. {git-sync}[git-sync] folders will be provided at `/stackable/apps/allDAGs/current-i`, with i in {0,1,..,n-1}.
4646
The Stackable Airflow images already ship with git-sync included, and the operator takes care of calling the tool and mounting volumes, so that only the repository and synchronization details are required:
4747

4848
.git-sync usage example: https
@@ -82,3 +82,7 @@ include::example$example-airflow-gitsync-ssh.yaml[]
8282

8383
NOTE: git-sync can be used with DAGs that make use of Python modules, as Python is configured to use the git-sync target folder as the "root" location when looking for referenced files.
8484
See the xref:usage-guide/applying-custom-resources.adoc[] example for more details.
85+
86+
=== Multiple repositories via git-sync
87+
88+
If you want to access multiple branches of a repository or load dags from multiple repositories, you can extend the list shown above. Those repositories get consolidated beneath `stackable/apps/allDAGs/current-i`, where `i` is the position in the list ranging from (0,1,..,n-1).

0 commit comments

Comments
 (0)