diff --git a/helm/kube-prometheus/Chart.yaml b/helm/kube-prometheus/Chart.yaml index 0b904f429..bfd756884 100644 --- a/helm/kube-prometheus/Chart.yaml +++ b/helm/kube-prometheus/Chart.yaml @@ -7,4 +7,4 @@ maintainers: name: kube-prometheus sources: - https://github.com/coreos/prometheus-operator -version: 0.0.93 +version: 0.0.95 \ No newline at end of file diff --git a/helm/kube-prometheus/templates/configmap.yaml b/helm/kube-prometheus/templates/configmap.yaml index 134be5a4c..b993cfe2d 100644 --- a/helm/kube-prometheus/templates/configmap.yaml +++ b/helm/kube-prometheus/templates/configmap.yaml @@ -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 }} diff --git a/helm/kube-prometheus/values.yaml b/helm/kube-prometheus/values.yaml index 1536d37ef..eb06b5c71 100644 --- a/helm/kube-prometheus/values.yaml +++ b/helm/kube-prometheus/values.yaml @@ -439,3 +439,9 @@ prometheus: deployCoreDNS: false deployKubeDNS: true deployKubeEtcd: true + +##Custom Labels to be added to Prometheus Rules ConfigMap +## +additionalRulesConfigMapLabels: {} + # additionalRulesConfigMapLabels: + # team: devops