turbaszek opened a new issue #12716:
URL: https://github.com/apache/airflow/issues/12716


   **Apache Airflow version**:
   2.0.0dev
   
   Due to this:
   
https://github.com/apache/airflow/blob/5e13c372860a28256bf6e572bf7349f3dd6b8b0c/chart/templates/scheduler/scheduler-deployment.yaml#L156-L164
   
   Doing this:
   
https://github.com/apache/airflow/tree/master/chart#mounting-dags-using-git-sync-side-car-with-persistence-enabled
   ```
   helm upgrade airflow . \
     --set dags.persistence.enabled=false \
     --set dags.gitSync.enabled=true
   ```
   
   will fail with:
   ```
   Error: Deployment.apps "airflow4-scheduler" is invalid: 
spec.template.spec.containers[0].volumeMounts[4].mountPath: Invalid value: 
"/opt/airflow/dags": must be unique
   ```
   The reason is that if both 
   ```
     --set dags.persistence.enabled=false
     --set dags.gitSync.enabled=true
   ```
   are specified then the volume mount is specified two times in scheduler 
definition.


----------------------------------------------------------------
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.

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


Reply via email to