From 65a71f9ef9e15525bd6701856affb59ac0ea8fe4 Mon Sep 17 00:00:00 2001 From: Nikolay Yurin Date: Fri, 21 Jun 2019 02:44:35 -0700 Subject: [PATCH] [stable/kibana] Add env variables evaluation as templates (#14905) * [stable/kibana] Add env variables evaluation as templates Signed-off-by: Nikolai Iurin * [stable/kibana] Bump version Signed-off-by: Nikolai Iurin --- stable/kibana/Chart.yaml | 2 +- stable/kibana/templates/deployment.yaml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/stable/kibana/Chart.yaml b/stable/kibana/Chart.yaml index cd5dc0efa9..047192dc5f 100644 --- a/stable/kibana/Chart.yaml +++ b/stable/kibana/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kibana -version: 3.1.1 +version: 3.2.0 appVersion: 6.7.0 description: Kibana is an open source data visualization plugin for Elasticsearch icon: https://raw.githubusercontent.com/elastic/kibana/master/src/ui/public/icons/kibana-color.svg diff --git a/stable/kibana/templates/deployment.yaml b/stable/kibana/templates/deployment.yaml index 5d11696036..e176c0adff 100644 --- a/stable/kibana/templates/deployment.yaml +++ b/stable/kibana/templates/deployment.yaml @@ -36,7 +36,7 @@ spec: initContainers: {{- if .Values.initContainers }} {{- range $key, $value := .Values.initContainers }} - - name: "{{ $key }}" + - name: {{ $key | quote }} {{ toYaml $value | indent 8 }} {{- end }} {{- end }} @@ -53,8 +53,8 @@ spec: {{- end }} env: {{- range $key, $value := .Values.env }} - - name: "{{ $key }}" - value: "{{ $value }}" + - name: {{ $key | quote }} + value: {{ tpl $value | quote }}" {{- end }} volumeMounts: - name: {{ template "kibana.fullname" . }}-dashboards @@ -108,8 +108,8 @@ spec: done env: {{- range $key, $value := .Values.env }} - - name: "{{ $key }}" - value: "{{ $value }}" + - name: {{ $key | quote }} + value: {{ tpl $value | quote }}" {{- end }} volumeMounts: - name: plugins @@ -137,8 +137,8 @@ spec: {{- end }} env: {{- range $key, $value := .Values.env }} - - name: "{{ $key }}" - value: "{{ $value }}" + - name: {{ $key | quote }} + value: {{ tpl $value | quote }}" {{- end }} {{- if .Values.envFromSecrets }} {{- range $key,$value := .Values.envFromSecrets }}