Skip to content

Commit 14a65e3

Browse files
authored
feat: add dags.gitSync.submodules value (#620)
* feat: add a new option to control submodule strategy for gitSync deployments Signed-off-by: Burak Karakan <[email protected]> * chore: fix the formatting of the allowed values for submodules Signed-off-by: Burak Karakan <[email protected]> * refactor: rename the submoduleStrategy value to submodules Signed-off-by: Burak Karakan <[email protected]> --------- Signed-off-by: Burak Karakan <[email protected]>
1 parent f7e2f35 commit 14a65e3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

charts/airflow/templates/_helpers/pods.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ EXAMPLE USAGE: {{ include "airflow.container.git_sync" (dict "Release" .Release
228228
value: "true"
229229
- name: GIT_SYNC_MAX_SYNC_FAILURES
230230
value: {{ .Values.dags.gitSync.maxFailures | quote }}
231+
- name: GIT_SYNC_SUBMODULES
232+
value: {{ .Values.dags.gitSync.submodules | quote }}
231233
{{- if .Values.dags.gitSync.sshSecret }}
232234
- name: GIT_SYNC_SSH
233235
value: "true"

charts/airflow/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,6 +1401,11 @@ dags:
14011401
##
14021402
syncTimeout: 120
14031403

1404+
## the git submodule behavior
1405+
## - allowed values: "recursive", "shallow", "off"
1406+
##
1407+
submodules: recursive
1408+
14041409
## the name of a pre-created Secret with git http credentials
14051410
##
14061411
httpSecret: ""

0 commit comments

Comments
 (0)