From 03e43ef61ea1a4c0e04c3446aec2b8ae5a13564a Mon Sep 17 00:00:00 2001 From: Bernd Hansen Date: Tue, 28 Apr 2020 14:20:07 +0200 Subject: [PATCH] [stable/airflow] Fix Failing Git Sync Host Key Verification (#22162) Signed-off-by: Bernd Hansen --- stable/airflow/Chart.yaml | 2 +- stable/airflow/templates/configmap-git-clone.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/airflow/Chart.yaml b/stable/airflow/Chart.yaml index 992b1feec2..3f2945b527 100644 --- a/stable/airflow/Chart.yaml +++ b/stable/airflow/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Airflow is a platform to programmatically author, schedule and monitor workflows name: airflow -version: 6.7.2 +version: 6.7.3 appVersion: 1.10.4 icon: https://airflow.apache.org/_images/pin_large.png home: https://airflow.apache.org/ diff --git a/stable/airflow/templates/configmap-git-clone.yaml b/stable/airflow/templates/configmap-git-clone.yaml index e553a22c15..0e00735ebf 100644 --- a/stable/airflow/templates/configmap-git-clone.yaml +++ b/stable/airflow/templates/configmap-git-clone.yaml @@ -19,6 +19,7 @@ data: mkdir -p ~/.ssh/ cp -rL /keys/* ~/.ssh/ chmod 600 ~/.ssh/* + ssh-keyscan -H $REPO_HOST >> ~/.ssh/known_hosts echo -e "HOST $REPO_HOST\n IdentityFile ~/.ssh/$PRIVATE_KEY" > ~/.ssh/config {{- end }} # Init Containers will re-run on Pod restart. Remove the directory's contents @@ -39,6 +40,7 @@ data: mkdir -p ~/.ssh/ cp -rL /keys/* ~/.ssh/ chmod 600 ~/.ssh/* + ssh-keyscan -H $REPO_HOST >> ~/.ssh/known_hosts echo -e "HOST $REPO_HOST\n IdentityFile ~/.ssh/$PRIVATE_KEY" > ~/.ssh/config {{- end }} {{- if eq .Values.dags.initContainer.enabled false }}