mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 06:45:27 +01:00
[helm/prometheus] Use contains on prometheus.fullname template (#1398)
* Use contains in prometheus.fullname * Add suffix to rules ConfigMap name
This commit is contained in:
committed by
Giancarlo Rubio
parent
1cbd9aa0d1
commit
4f64e84328
@@ -7,4 +7,4 @@ maintainers:
|
||||
name: kube-prometheus
|
||||
sources:
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
version: 0.0.73
|
||||
version: 0.0.74
|
||||
|
||||
@@ -6,7 +6,7 @@ dependencies:
|
||||
condition: deployAlertManager
|
||||
|
||||
- name: prometheus
|
||||
version: 0.0.39
|
||||
version: 0.0.40
|
||||
#e2e-repository: file://../prometheus
|
||||
repository: https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/
|
||||
|
||||
|
||||
@@ -7,4 +7,4 @@ maintainers:
|
||||
name: prometheus
|
||||
sources:
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
version: 0.0.39
|
||||
version: 0.0.40
|
||||
|
||||
@@ -16,7 +16,7 @@ If release name contains chart name it will be used as a full name.
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- if eq $name .Release.Name -}}
|
||||
{{- if contains $name .Release.Name -}}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
|
||||
@@ -11,7 +11,7 @@ metadata:
|
||||
{{- if .Values.additionalRulesConfigMapLabels }}
|
||||
{{ toYaml .Values.additionalRulesConfigMapLabels | indent 4 }}
|
||||
{{- end }}
|
||||
name: {{ template "prometheus.fullname" . }}
|
||||
name: {{ template "prometheus.fullname" . }}-rules
|
||||
data:
|
||||
{{- if .Values.prometheusRules }}
|
||||
{{- $root := . }}
|
||||
|
||||
Reference in New Issue
Block a user