From 6547d5dfcb3ed912c0184bd5b1fb6b6aafc4b470 Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Thu, 19 Sep 2024 11:48:40 +0200 Subject: [PATCH] =?UTF-8?q?fix(base-cluster/monitoring):=20only=20roll=20o?= =?UTF-8?q?ut=20alertmanager=20oauth-proxy=20when=20alertmanager=20is=20en?= =?UTF-8?q?abled=20=F0=9F=A4=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/monitoring/kube-prometheus-stack/oauth-proxy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/base-cluster/templates/monitoring/kube-prometheus-stack/oauth-proxy.yaml b/charts/base-cluster/templates/monitoring/kube-prometheus-stack/oauth-proxy.yaml index 6c5e13c8c0..eb7deefb65 100644 --- a/charts/base-cluster/templates/monitoring/kube-prometheus-stack/oauth-proxy.yaml +++ b/charts/base-cluster/templates/monitoring/kube-prometheus-stack/oauth-proxy.yaml @@ -3,7 +3,7 @@ {{- if include "base-cluster.monitoring.authenticated-ingress.enabled" (dict "name" "prometheus" "context" .) -}} {{- $backends = append $backends (dict "host" "prometheus" "port" 9090) -}} {{- end -}} -{{- if include "base-cluster.monitoring.authenticated-ingress.enabled" (dict "name" "alertmanager" "context" .) -}} +{{- if and (include "base-cluster.prometheus-stack.alertmanager.enabled" .) (include "base-cluster.monitoring.authenticated-ingress.enabled" (dict "name" "alertmanager" "context" .)) -}} {{- $backends = append $backends (dict "host" "alertmanager" "port" 9093) -}} {{- end -}} {{- range $backend := $backends }}