Skip to content

Commit

Permalink
Remove duplicated volume mount for git sync in scheduler template (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
turbaszek authored Feb 8, 2021
1 parent 8c5594b commit e7a2e35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chart/templates/dags-persistent-volume-claim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Release.Name }}-dags
name: {{ template "airflow_dags_volume_claim" . }}
labels:
tier: airflow
component: dags-pvc
Expand Down
2 changes: 0 additions & 2 deletions chart/templates/scheduler/scheduler-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ spec:
{{ toYaml .Values.scheduler.extraVolumeMounts | indent 12 }}
{{- end }}
{{- if .Values.dags.gitSync.enabled }}
- name: dags
mountPath: {{ template "airflow_dags_mount_path" . }}
{{- include "git_sync_container" . | indent 8 }}
{{- end }}
# Always start the garbage collector sidecar.
Expand Down
4 changes: 2 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,9 @@ dags:
# If using a custom storageClass, pass name here
storageClassName:
# access mode of the persistent volume
accessMode: ReadWriteMany
accessMode: ReadWriteOnce
## the name of an existing PVC to use
existingClaim: ~
existingClaim:
gitSync:
enabled: false
# git repo clone url
Expand Down

0 comments on commit e7a2e35

Please sign in to comment.