mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus] semver compatible chart versioning breaks chart label. (#18411)
Signed-off-by: Erhan Kesken <erhankesken@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
a1de38d24d
commit
7f2ce76723
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: prometheus
|
||||
version: 9.3.2
|
||||
version: 9.3.3
|
||||
appVersion: 2.13.1
|
||||
description: Prometheus is a monitoring system and time series database.
|
||||
home: https://prometheus.io/
|
||||
|
||||
@@ -6,6 +6,13 @@ Expand the name of the chart.
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "prometheus.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create unified labels for prometheus components
|
||||
*/}}
|
||||
@@ -15,7 +22,7 @@ release: {{ .Release.Name }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "prometheus.common.metaLabels" -}}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||||
chart: {{ template "prometheus.chart" . }}
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user