mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 06:45:27 +01:00
Kube-prometheus: add additional labels for rules configMap (#1444)
* add additional labels for rules configMap bring kube-prometheus closer to feature parity with other Helm configs
This commit is contained in:
committed by
Giancarlo Rubio
parent
970f99fe97
commit
ccf8867cdb
@@ -7,4 +7,4 @@ maintainers:
|
||||
name: kube-prometheus
|
||||
sources:
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
version: 0.0.93
|
||||
version: 0.0.95
|
||||
@@ -8,6 +8,9 @@ metadata:
|
||||
prometheus: {{ .Release.Name }}
|
||||
release: {{ .Release.Name }}
|
||||
role: alert-rules
|
||||
{{- if .Values.additionalRulesConfigMapLabels }}
|
||||
{{ toYaml .Values.additionalRulesConfigMapLabels | indent 4 }}
|
||||
{{- end }}
|
||||
name: {{ template "kube-prometheus.fullname" . }}
|
||||
data:
|
||||
{{- if .Values.prometheusRules }}
|
||||
|
||||
@@ -439,3 +439,9 @@ prometheus:
|
||||
deployCoreDNS: false
|
||||
deployKubeDNS: true
|
||||
deployKubeEtcd: true
|
||||
|
||||
##Custom Labels to be added to Prometheus Rules ConfigMap
|
||||
##
|
||||
additionalRulesConfigMapLabels: {}
|
||||
# additionalRulesConfigMapLabels:
|
||||
# team: devops
|
||||
|
||||
Reference in New Issue
Block a user