You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2023/09/04 20:05:26 UTC
[GitHub] [airflow] potiuk commented on issue #34078: git-sync subPath is not working
potiuk commented on issue #34078:
URL: https://github.com/apache/airflow/issues/34078#issuecomment-1705665455
It is going to be closed again (or rather moved to discussion).
With git-sync it is impossible to clone sub-directory of a repo. This is not how git and git-sync works. You always have to clone the whole repository.
How subPath works, is that it makes AIRFLOW_DAGS env variable point to the sub-directory of the cloned repo:
```
{{- define "airflow_dags" -}}
{{- if .Values.dags.gitSync.enabled }}
{{- printf "%s/dags/repo/%s" .Values.airflowHome .Values.dags.gitSync.subPath }}
{{- else }}
{{- printf "%s/dags" .Values.airflowHome }}
{{- end }}
{{- end }}
```
So when you use subPath, the whole repo is cloned, but Airflow looks for dags only in `subPath` of it.
Converting to discussion, but if you argue with it, you should argue with git and git-sync maintainers, not with Airflow ones.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org