From c7fec74f0fcb82a9c5d1847cd69089c7b187580a Mon Sep 17 00:00:00 2001 From: Karsten Ludwig Hauser Date: Thu, 5 Dec 2019 10:46:31 +0100 Subject: [PATCH] service labels shall also be reflected on prometheusOperator (#19360) Signed-off-by: Karsten Ludwig Hauser --- stable/prometheus-operator/Chart.yaml | 2 +- .../templates/prometheus-operator/service.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stable/prometheus-operator/Chart.yaml b/stable/prometheus-operator/Chart.yaml index 212dfa8302..1a6fecfbae 100644 --- a/stable/prometheus-operator/Chart.yaml +++ b/stable/prometheus-operator/Chart.yaml @@ -12,7 +12,7 @@ sources: - https://github.com/coreos/kube-prometheus - https://github.com/coreos/prometheus-operator - https://coreos.com/operators/prometheus -version: 8.3.1 +version: 8.3.2 appVersion: 0.34.0 tillerVersion: ">=2.12.0" home: https://github.com/coreos/prometheus-operator diff --git a/stable/prometheus-operator/templates/prometheus-operator/service.yaml b/stable/prometheus-operator/templates/prometheus-operator/service.yaml index eca78ff8cd..2a47686cda 100644 --- a/stable/prometheus-operator/templates/prometheus-operator/service.yaml +++ b/stable/prometheus-operator/templates/prometheus-operator/service.yaml @@ -7,6 +7,9 @@ metadata: labels: app: {{ template "prometheus-operator.name" . }}-operator {{ include "prometheus-operator.labels" . | indent 4 }} +{{- if .Values.prometheusOperator.service.labels }} +{{ toYaml .Values.prometheusOperator.service.labels | indent 4 }} +{{- end }} {{- if .Values.prometheusOperator.service.annotations }} annotations: {{ toYaml .Values.prometheusOperator.service.annotations | indent 4 }}