From bf990fe317c1049f460140d9bb34b56c445a887b Mon Sep 17 00:00:00 2001 From: Hendrik Purmann Date: Mon, 18 Feb 2019 12:00:11 +0100 Subject: [PATCH] Fix invalid yaml output when no extra config is specified (#11483) Signed-off-by: Hendrik Purmann --- stable/elastalert/Chart.yaml | 2 +- stable/elastalert/templates/config.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/elastalert/Chart.yaml b/stable/elastalert/Chart.yaml index 549a721811..181853e1b7 100644 --- a/stable/elastalert/Chart.yaml +++ b/stable/elastalert/Chart.yaml @@ -1,6 +1,6 @@ description: ElastAlert is a simple framework for alerting on anomalies, spikes, or other patterns of interest from data in Elasticsearch. name: elastalert -version: 0.11.0 +version: 0.11.1 appVersion: 0.1.38 home: https://github.com/Yelp/elastalert icon: https://static-www.elastic.co/assets/blteb1c97719574938d/logo-elastic-elasticsearch-lt.svg diff --git a/stable/elastalert/templates/config.yaml b/stable/elastalert/templates/config.yaml index a6de66f54e..8908b9f16c 100644 --- a/stable/elastalert/templates/config.yaml +++ b/stable/elastalert/templates/config.yaml @@ -42,4 +42,6 @@ data: {{- end }} alert_time_limit: minutes: {{ .Values.alertRetryLimitMins }} +{{- if .Values.extraConfigOptions }} {{ toYaml .Values.extraConfigOptions | indent 4 }} +{{- end }}