stable/airflow: revert initdb order change (#21426)

The init order change in https://github.com/helm/charts/pull/21368
was the wrong solution to the problem at hand (circular dependencies
between a custom db hook and initdb) and can create init failures
when installing with a blank db.  Reverting.

Signed-off-by: Nathan J. Mehl <n@oden.io>
This commit is contained in:
memory
2020-03-12 09:00:39 -07:00
committed by GitHub
parent 9d8fbe50f1
commit c23914c8f1
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Airflow is a platform to programmatically author, schedule and monitor workflows
name: airflow
version: 6.4.0
version: 6.5.0
appVersion: 1.10.4
icon: https://airflow.apache.org/_images/pin_large.png
home: https://airflow.apache.org/
@@ -195,6 +195,10 @@ spec:
mkdir -p /usr/local/airflow/.local/bin &&
export PATH=/usr/local/airflow/.local/bin:$PATH &&
/usr/local/scripts/install-requirements.sh &&
{{- if .Values.airflow.initdb }}
echo "*** executing initdb" &&
airflow initdb &&
{{- end }}
{{- if .Values.airflow.variables }}
echo "*** adding variables" &&
airflow variables -i /usr/local/variables-pools/variables.json &&
@@ -203,10 +207,6 @@ spec:
echo "*** adding connections" &&
/usr/local/connections/add-connections.sh &&
{{- end }}
{{- if .Values.airflow.initdb }}
echo "*** executing initdb" &&
airflow initdb &&
{{- end }}
{{- if .Values.airflow.pools }}
echo "*** adding pools" &&
airflow pool -i /usr/local/variables-pools/pools.json &&
@@ -219,6 +219,10 @@ spec:
sleep 10 &&
mkdir -p /usr/local/airflow/.local/bin &&
export PATH=/usr/local/airflow/.local/bin:$PATH &&
{{- if .Values.airflow.initdb }}
echo "*** executing initdb" &&
airflow initdb &&
{{- end }}
{{- if .Values.airflow.variables }}
echo "*** adding variables" &&
airflow variables -i /usr/local/variables-pools/variables.json &&
@@ -227,10 +231,6 @@ spec:
echo "*** adding connections" &&
/usr/local/connections/add-connections.sh &&
{{- end }}
{{- if .Values.airflow.initdb }}
echo "*** executing initdb" &&
airflow initdb &&
{{- end }}
{{- if .Values.airflow.pools }}
echo "*** adding pools" &&
airflow pool -i /usr/local/variables-pools/pools.json &&