Skip to content

Commit

Permalink
[#504] Added helm chart for airflow-credentials secret creation
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaksandr-d committed Oct 19, 2018
1 parent 903a4a6 commit b4621d9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy/helms/airflow/templates/credentials.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Secret
metadata:
name: airflow-credentials
type: Opaque
data:
{{- range .Values.connections }}
{{ $_ := set . "conn_id" .connection_id }}
{{ $_ := unset . "connection_id" }}
{{ $_ := set . "conn_type" .connection_type }}
{{ $_ := unset . "connection_type" }}
{{ if hasKey . "extra" }}
{{ $extra := .extra | toJson }}
{{ $_ := set . "extra" $extra }}
{{ end }}
{{ .conn_id }}: {{ . | toYaml | b64enc }}
{{- end }}

0 comments on commit b4621d9

Please sign in to comment.