Skip to content

Commit 2a401b1

Browse files
authored
Add support for GIT_SYNC_MAX_FAILURES (#182)
Signed-off-by: Nathan J. Mehl <[email protected]>
1 parent 9961aa0 commit 2a401b1

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

charts/airflow/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: the community-maintained descendant of the stable/airflow helm chart - focused on ease-of-use
33
name: airflow
4-
version: 8.2.0
4+
version: 8.3.0
55
appVersion: 2.0.1
66
icon: https://airflow.apache.org/_images/pin_large.png
77
home: https://airflow.apache.org/

charts/airflow/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ kubectl port-forward --namespace $NAMESPACE $POD_NAME 8080:8080
5959

6060
Old Version | New Version | Upgrade Guide
6161
--- | --- | ---
62+
v8.2.X | v8.3.0 | [link](UPGRADE.md#v82x--v830)
6263
v8.1.X | v8.2.0 | [link](UPGRADE.md#v81x--v820)
6364
v8.0.X | v8.1.0 | [link](UPGRADE.md#v80x--v810)
6465
v7.15.X | v8.0.0 | [link](UPGRADE.md#v715x--v800)

charts/airflow/UPGRADE.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# Upgrading Steps
22

3-
## `v8.1.X``v8.2.0`
3+
## `v8.2.0``v8.3.0`
44

55
__The following IMPROVEMENTS have been made:__
66

7-
* Added an ability to setup external redis connection propertites with the value `externalRedis.properties` for TLS or other advanced parameters
7+
* Added an ability set the maximum number of sync failures that the gitSync sidecar container will tolerate before exiting
8+
9+
__The following values have been ADDED:__
10+
11+
* `dags.gitSync.maxFailures`
12+
13+
## `v8.1.X``v8.2.0`
14+
815

916
__The following values have been ADDED:__
1017

charts/airflow/templates/_helpers/pods.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ EXAMPLE USAGE: {{ include "airflow.container.git_sync" (dict "Release" .Release
118118
value: {{ .Values.dags.gitSync.syncTimeout | quote }}
119119
- name: GIT_SYNC_ADD_USER
120120
value: "true"
121+
- name: GIT_SYNC_MAX_FAILURES
122+
value: {{ .Values.dags.gitSync.maxFailures | quote }}
121123
{{- if .Values.dags.gitSync.sshSecret }}
122124
- name: GIT_SYNC_SSH
123125
value: "true"

charts/airflow/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,14 @@ dags:
10801080
##
10811081
sshKnownHosts: ""
10821082

1083+
## the number of consecutive failures allowed before aborting
1084+
##
1085+
## NOTE:
1086+
## - the first sync must succeed
1087+
## - a value of -1 will retry forever after the initial sync
1088+
##
1089+
maxFailures: 0
1090+
10831091
###################################
10841092
# Kubernetes - Ingress Configs
10851093
###################################

0 commit comments

Comments
 (0)