fix(argo-cd): add .Release.Namespace into condition

Signed-off-by: Jakub Oskera <iam@jakuboskera.dev>
This commit is contained in:
Jakub Oskera 2023-04-12 20:18:11 +02:00
parent be658c3ff0
commit 501d920e16

View file

@ -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 }}