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:
parent
970f99fe97
commit
ccf8867cdb
3 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue