Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/airflow] bug fix to make git sync work with branches other then master #19414

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/airflow/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Airflow is a platform to programmatically author, schedule and monitor workflows
name: airflow
version: 5.2.1
version: 5.2.2
appVersion: 1.10.4
icon: https://airflow.apache.org/_images/pin_large.png
home: https://airflow.apache.org/
Expand Down
7 changes: 4 additions & 3 deletions stable/airflow/templates/configmap-git-clone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ data:
if [ -d "$DIR" ]; then
rm -rf $( find $DIR -mindepth 1 )
fi
git clone $REPO $DIR
cd $DIR
git reset --hard $REF
git clone $REPO -b $REF $DIR
git-sync.sh: |
#!/bin/sh -e
REPO=$1
Expand All @@ -43,5 +41,8 @@ data:
chmod 600 ~/.ssh/*
echo -e "HOST $REPO_HOST\n IdentityFile ~/.ssh/$PRIVATE_KEY" > ~/.ssh/config
{{- end }}
{{- if eq .Values.dags.initContainer.enabled false }}
git clone $REPO -b $REF $DIR
{{- end }}
cd $DIR
while true; do git pull; date; sleep $SYNC_TIME; done