[stable/elastalert]: improve templates - add variables for override fullname of chart (#21800)

* bump chart

Signed-off-by: Anatoly Bezgubov <bezgubov@sports.ru>

Co-authored-by: Anatoly Bezgubov <bezgubov@sports.ru>
This commit is contained in:
Anatoly Bezgubov
2020-04-08 06:25:43 -07:00
committed by GitHub
co-authored by Anatoly Bezgubov
parent c1bd30cbe0
commit 95de995efd
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: ElastAlert is a simple framework for alerting on anomalies, spikes, or other patterns of interest from data in Elasticsearch.
name: elastalert
version: 1.2.3
version: 1.2.4
appVersion: 0.2.1
home: https://github.com/Yelp/elastalert
icon: https://static-www.elastic.co/assets/blteb1c97719574938d/logo-elastic-elasticsearch-lt.svg
+9
View File
@@ -9,8 +9,17 @@ Expand the name of the chart.
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "elastalert.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}