ururu-fy opened a new issue #20196:
URL: https://github.com/apache/airflow/issues/20196


   ### Official Helm Chart version
   
   1.3.0 (latest released)
   
   ### Apache Airflow version
   
   2.2.1
   
   ### Kubernetes Version
   
   1.20
   
   ### Helm Chart configuration
   
   # Git sync
   dags:
     persistence:
       # Enable persistent volume for storing dags
       enabled: false
       # Volume size for dags
       size: 1Gi
       # If using a custom storageClass, pass name here
       storageClassName:
       # access mode of the persistent volume
       accessMode: ReadWriteOnce
       ## the name of an existing PVC to use
       existingClaim:
     gitSync:
       enabled: true
       repo: [email protected]:/data-airflow.git
       branch: test_dags
       rev: HEAD
       depth: 1
       # the number of consecutive failures allowed before aborting
       maxFailures: 1
       # subpath within the repo where dags are located
       # should be "" if dags are at repo root
       subPath: ""
       # if your repo needs a user name password
       # you can load them to a k8s secret like the one below
       #   ---
       #   apiVersion: v1
       #   kind: Secret
       #   metadata:
       #     name: git-credentials-data-airflow
       #   data:
       #     GIT_SYNC_USERNAME: 
       #     GIT_SYNC_PASSWORD: 
       # and specify the name of the secret below
       #
       #credentialsSecret: git-credentials-data-airflow
       #
       #
       # If you are using an ssh clone url, you can load
       # the ssh private key to a k8s secret like the one below
       #   ---
       #   apiVersion: v1
       #   kind: Secret
       #   metadata:
       #     name: airflow-ssh-secret
       #   data:
       #     # key needs to be gitSshKey
       #     gitSshKey: <base64_encoded_data>
       # and specify the name of the secret below
       sshKeySecret: airflow-ssh-secret
       #
       # If you are using an ssh private key, you can additionally
       # specify the content of your known_hosts file, example:
       #
       # knownHosts: |
       #    <host1>,<ip1> <key1>
       #    <host2>,<ip2> <key2>
       # interval between git sync attempts in seconds
       wait: 60
       containerName: git-sync
       uid: 65533
       extraVolumeMounts: []
       env: []
       resources: {}
       #  limits:
       #   cpu: 100m
       #   memory: 128Mi
       #  requests:
       #   cpu: 100m
       #   memory: 128Mi
   
   
   ### Docker Image customisations
   
   _No response_
   
   ### What happened
   
   When I turn on git sync, the dags folder is mounted read-only. If you turn 
off synchronization, the folder is mounted for reading and writing.
   
   ### What you expected to happen
   
   Mount /opt/airflow/dags in readwrite mode
   
   ### How to reproduce
   
   enable gitSync: true
   
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to