mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
co-authored by
Anatoly Bezgubov
parent
c1bd30cbe0
commit
95de995efd
@@ -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,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 -}}
|
||||
|
||||
Reference in New Issue
Block a user