Skip to content

GitSync does not seem to respect dags.gitSync.subPath #25928

@hazelrah-qr

Description

@hazelrah-qr

Official Helm Chart version

1.6.0 (latest released)

Apache Airflow version

2.3.2

Kubernetes Version

1.20.11

Helm Chart configuration

dags.gitSync.branch=develop
dags.gitSync.subPath=dags
dags:
  persistence:
    enabled: true
    size: 1Gi
    storageClassName: "file-dr-off-pdc1"
    accessMode: ReadWriteMany
  gitSync:
    enabled: true
    branch: master
    rev: HEAD
    depth: 1
    maxFailures: 3
    env:
      - name: GIT_SYNC_SUBMODULES
        value: 'off'

Docker Image customisations

No response

What happened

When applying the provided values.yml the whole repository is still synced, not just the dags folder in the repository.

airflow@ci-airflow-scheduler-4k4gn:/opt/airflow/dags/repo$ ls
README.md  dags  docker-compose.yaml  docker-compose.yml  pyproject.toml  tests

What you think should happen instead

Only the provided subPath would be synced in to /opt/airflow/dags/repo

How to reproduce

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions