From 34c7f91869f8799ca00eccf492cc0f30e28f4d57 Mon Sep 17 00:00:00 2001 From: Michael Cherepnev Date: Wed, 11 Sep 2019 12:05:24 +0300 Subject: [PATCH] Add command line parameters quoting in create connections script in Airflow chart (#17062) Signed-off-by: Mikhail Cherepnev Signed-off-by: Marius Voila --- stable/airflow/Chart.yaml | 2 +- stable/airflow/templates/secret-connections.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stable/airflow/Chart.yaml b/stable/airflow/Chart.yaml index 80937dbfd65a..de704ce0e596 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: 4.0.7 +version: 4.0.8 appVersion: 1.10.4 icon: https://airflow.apache.org/_images/pin_large.png home: https://airflow.apache.org/ diff --git a/stable/airflow/templates/secret-connections.yaml b/stable/airflow/templates/secret-connections.yaml index 6675e1adbaa7..34c35eccc401 100644 --- a/stable/airflow/templates/secret-connections.yaml +++ b/stable/airflow/templates/secret-connections.yaml @@ -1,12 +1,12 @@ {{- define "connections.script" }} #!/bin/sh -e {{- range .Values.airflow.connections }} - airflow connections --add --conn_type {{ .type }} --conn_id {{ .id }} + airflow connections --add --conn_type {{ .type }} --conn_id {{ .id }} {{- if .uri }} --conn_uri {{ .uri | quote }} {{ end -}} - {{- if .host }} --conn_host {{ .host }} {{ end -}} - {{- if .login }} --conn_login {{ .login }} {{ end -}} - {{- if .password }} --conn_password {{ .password }} {{ end -}} - {{- if .schema }} --conn_schema {{ .schema }} {{ end -}} + {{- if .host }} --conn_host {{ .host | quote }} {{ end -}} + {{- if .login }} --conn_login {{ .login | quote }} {{ end -}} + {{- if .password }} --conn_password {{ .password | quote }} {{ end -}} + {{- if .schema }} --conn_schema {{ .schema | quote }} {{ end -}} {{- if .port }} --conn_port {{ .port }} {{ end -}} {{- if .extra }} --conn_extra {{ .extra | quote }} {{ end -}} {{- end }}