From 501d920e168d1b6362e58f0488da20af45a0352a Mon Sep 17 00:00:00 2001 From: Jakub Oskera Date: Wed, 12 Apr 2023 20:18:11 +0200 Subject: [PATCH] fix(argo-cd): add .Release.Namespace into condition Signed-off-by: Jakub Oskera --- .../argo-cd/templates/argocd-notifications/servicemonitor.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/argo-cd/templates/argocd-notifications/servicemonitor.yaml b/charts/argo-cd/templates/argocd-notifications/servicemonitor.yaml index 5b378a23..5445440a 100644 --- a/charts/argo-cd/templates/argocd-notifications/servicemonitor.yaml +++ b/charts/argo-cd/templates/argocd-notifications/servicemonitor.yaml @@ -3,9 +3,10 @@ apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ template "argo-cd.notifications.fullname" . }} - namespace: {{ .Release.Namespace | quote }} {{- if .Values.notifications.metrics.serviceMonitor.namespace }} namespace: {{ .Values.notifications.metrics.serviceMonitor.namespace }} + {{- else }} + namespace: {{ .Release.Namespace | quote }} {{- end }} labels: {{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}