1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-09 02:24:16 +00: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