From 72d9a04034419bd9ffcd457171ad7c8f4cb44b38 Mon Sep 17 00:00:00 2001 From: Joe Hohertz Date: Thu, 3 Jan 2019 12:30:36 -0500 Subject: [PATCH] recent change broke additional service monitors by not breaking out of range scope to get other variables. fixed. (#10384) Signed-off-by: Joe Hohertz --- stable/prometheus-operator/Chart.yaml | 2 +- .../templates/prometheus/servicemonitors.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/prometheus-operator/Chart.yaml b/stable/prometheus-operator/Chart.yaml index d958d23e8d..e055bf3f47 100644 --- a/stable/prometheus-operator/Chart.yaml +++ b/stable/prometheus-operator/Chart.yaml @@ -9,7 +9,7 @@ name: prometheus-operator sources: - https://github.com/coreos/prometheus-operator - https://coreos.com/operators/prometheus -version: 1.4.0 +version: 1.4.1 appVersion: 0.26.0 home: https://github.com/coreos/prometheus-operator keywords: diff --git a/stable/prometheus-operator/templates/prometheus/servicemonitors.yaml b/stable/prometheus-operator/templates/prometheus/servicemonitors.yaml index 8654707587..61f3ca3cf8 100644 --- a/stable/prometheus-operator/templates/prometheus/servicemonitors.yaml +++ b/stable/prometheus-operator/templates/prometheus/servicemonitors.yaml @@ -3,7 +3,7 @@ apiVersion: v1 kind: List items: {{- range .Values.prometheus.additionalServiceMonitors }} - - apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }} + - apiVersion: {{ printf "%s/v1" ($.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }} kind: ServiceMonitor metadata: name: {{ .name }}