mirror of
https://github.com/bitnami/charts.git
synced 2026-03-27 15:27:10 +08:00
Use 60 seconds as default interval
Signed-off-by: juan131 <juan@bitnami.com>
This commit is contained in:
@@ -196,5 +196,5 @@ helm install --name my-release bitnami/airflow \
|
||||
--set airflow.cloneDagFilesFromGit.enabled=true \
|
||||
--set airflow.cloneDagFilesFromGit.repository=https://github.com/USERNAME/REPOSITORY \
|
||||
--set airflow.cloneDagFilesFromGit.branch=master
|
||||
--set airflow.cloneDagFilesFromGit.interval=3600
|
||||
--set airflow.cloneDagFilesFromGit.interval=60
|
||||
```
|
||||
|
||||
@@ -239,7 +239,8 @@ Compile all warnings into a single message, and call fail.
|
||||
*/}}
|
||||
{{- define "airflow.validateValues" -}}
|
||||
{{- $messages := list -}}
|
||||
{{- $messages := append $messages (include "airflow.validateValues.cloneDagFilesFromGit" .) -}}
|
||||
{{- $messages := append $messages (include "airflow.validateValues.cloneDagFilesFromGit.repository" .) -}}
|
||||
{{- $messages := append $messages (include "airflow.validateValues.cloneDagFilesFromGit.branch" .) -}}
|
||||
{{- $messages := without $messages "" -}}
|
||||
{{- $message := join "\n" $messages -}}
|
||||
|
||||
@@ -249,12 +250,15 @@ Compile all warnings into a single message, and call fail.
|
||||
{{- end -}}
|
||||
|
||||
{{/* Validate values of Airflow - "airflow.cloneDagFilesFromGit.repository" must be provided when "airflow.cloneDagFilesFromGit.enabled" is "true" */}}
|
||||
{{- define "airflow.validateValues.cloneDagFilesFromGit" -}}
|
||||
{{- define "airflow.validateValues.cloneDagFilesFromGit.repository" -}}
|
||||
{{- if and .Values.airflow.cloneDagFilesFromGit.enabled (empty .Values.airflow.cloneDagFilesFromGit.repository) -}}
|
||||
airflow: airflow.cloneDagFilesFromGit.repository
|
||||
The repository must be provided when enabling downloading DAG files
|
||||
from git repository (--set airflow.cloneDagFilesFromGit.repository="xxx")
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{/* Validate values of Airflow - "airflow.cloneDagFilesFromGit.branch" must be provided when "airflow.cloneDagFilesFromGit.enabled" is "true" */}}
|
||||
{{- define "airflow.validateValues.cloneDagFilesFromGit.branch" -}}
|
||||
{{- if and .Values.airflow.cloneDagFilesFromGit.enabled (empty .Values.airflow.cloneDagFilesFromGit.branch) -}}
|
||||
airflow: airflow.cloneDagFilesFromGit.branch
|
||||
The branch must be provided when enabling downloading DAG files
|
||||
|
||||
@@ -68,7 +68,7 @@ spec:
|
||||
- |
|
||||
while true; do
|
||||
cd /dags && git pull origin {{ .Values.airflow.cloneDagFilesFromGit.branch }}
|
||||
sleep {{ default "3600" .Values.airflow.cloneDagFilesFromGit.interval }}
|
||||
sleep {{ default "60" .Values.airflow.cloneDagFilesFromGit.interval }}
|
||||
done
|
||||
volumeMounts:
|
||||
- name: git-cloned-dag-files
|
||||
|
||||
@@ -68,7 +68,7 @@ spec:
|
||||
- |
|
||||
while true; do
|
||||
cd /dags && git pull origin {{ .Values.airflow.cloneDagFilesFromGit.branch }}
|
||||
sleep {{ default "3600" .Values.airflow.cloneDagFilesFromGit.interval }}
|
||||
sleep {{ default "60" .Values.airflow.cloneDagFilesFromGit.interval }}
|
||||
done
|
||||
volumeMounts:
|
||||
- name: git-cloned-dag-files
|
||||
|
||||
@@ -72,7 +72,7 @@ spec:
|
||||
- |
|
||||
while true; do
|
||||
cd /dags && git pull origin {{ .Values.airflow.cloneDagFilesFromGit.branch }}
|
||||
sleep {{ default "3600" .Values.airflow.cloneDagFilesFromGit.interval }}
|
||||
sleep {{ default "60" .Values.airflow.cloneDagFilesFromGit.interval }}
|
||||
done
|
||||
volumeMounts:
|
||||
- name: git-cloned-dag-files
|
||||
|
||||
Reference in New Issue
Block a user