kubernetes / git-sync

A sidecar app which clones a git repo and keeps it in sync with the upstream.
Apache License 2.0
2.14k stars 409 forks source link

[Question] Setting up git-sync to get submodules on helm-chart #823

Closed ImmortalLotus closed 9 months ago

ImmortalLotus commented 9 months ago

I am using airflow's helm chart, and I have this

gitSync:
    enabled: true
    repo: url_to_repo
    branch: main
    subPath: dags

what do I need to add in order to sync submodules?

thockin commented 9 months ago

I don't know what value the helm chart accepts, but the default submodules behavior is to handle submodules recursively, so it should "just work". Is it possible that the chart is setting --submodules=off ?

ImmortalLotus commented 9 months ago

as a matter of fact, I asked before I actually tried it out in order to avoid possible stress. thanks!