Skip to content

Commit

Permalink
Update example KubernetesExecutor git-sync pod template file (#15…
Browse files Browse the repository at this point in the history
…904)

This fixes the example to have a functional gitsync.

Closes: #11789
GitOrigin-RevId: 2cbaff0a02b7ed1815bb358b6fa2faaf89e9bf6c
  • Loading branch information
jedcunningham authored and Cloud Composer Team committed Sep 13, 2024
1 parent 09f296b commit 3575a1a
Showing 1 changed file with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ metadata:
spec:
initContainers:
- name: git-sync
image: "k8s.gcr.io/git-sync:v3.1.6"
image: "k8s.gcr.io/git-sync/git-sync:v3.3.0"
env:
- name: GIT_SYNC_REV
value: "HEAD"
- name: GIT_SYNC_BRANCH
value: "v2-0-stable"
- name: GIT_SYNC_REPO
Expand All @@ -42,10 +40,8 @@ spec:
value: "repo"
- name: GIT_SYNC_ADD_USER
value: "true"
- name: GIT_SYNC_WAIT
value: "60"
- name: GIT_SYNC_MAX_SYNC_FAILURES
value: "0"
- name: GIT_SYNC_ONE_TIME
value: "true"
volumeMounts:
- name: airflow-dags
mountPath: /git
Expand Down Expand Up @@ -81,24 +77,22 @@ spec:
name: airflow-logs
- mountPath: /opt/airflow/dags
name: airflow-dags
subPath: repo/airflow/example_dags
readOnly: false
hostNetwork: false
restartPolicy: Never
securityContext:
runAsUser: 50000
fsGroup: 50000
nodeSelector:
{}
affinity:
{}
tolerations:
[]
serviceAccountName: 'RELEASE-NAME-worker-serviceaccount'
nodeSelector: {}
affinity: {}
tolerations: []
serviceAccountName: "RELEASE-NAME-worker-serviceaccount"
volumes:
- name: airflow-dags
emptyDir: {}
- emptyDir: {}
name: airflow-logs
- name: airflow-logs
emptyDir: {}
- configMap:
name: RELEASE-NAME-airflow-config
name: airflow-config
Expand Down

0 comments on commit 3575a1a

Please sign in to comment.