Skip to content

Commit

Permalink
Add command line parameters quoting in create connections script in A…
Browse files Browse the repository at this point in the history
…irflow chart (helm#17062)

Signed-off-by: Mikhail Cherepnev <mikhail.cherepnev@gmail.com>
Signed-off-by: Marius Voila <myself@mariusv.com>
  • Loading branch information
meeshaeel authored and mariusv committed Sep 16, 2019
1 parent fdd3f5b commit 34c7f91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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: 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/
Expand Down
10 changes: 5 additions & 5 deletions stable/airflow/templates/secret-connections.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down

0 comments on commit 34c7f91

Please sign in to comment.