1
0
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:
Michael Raimondi
2018-07-06 04:20:13 -04:00
committed by Giancarlo Rubio
parent 970f99fe97
commit ccf8867cdb
3 changed files with 10 additions and 1 deletions

View File

@@ -7,4 +7,4 @@ maintainers:
name: kube-prometheus
sources:
- https://github.com/coreos/prometheus-operator
version: 0.0.93
version: 0.0.95

View File

@@ -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 }}

View File

@@ -439,3 +439,9 @@ prometheus:
deployCoreDNS: false
deployKubeDNS: true
deployKubeEtcd: true
##Custom Labels to be added to Prometheus Rules ConfigMap
##
additionalRulesConfigMapLabels: {}
# additionalRulesConfigMapLabels:
# team: devops