fix(argo-cd): add .Release.Namespace into condition
Signed-off-by: Jakub Oskera <iam@jakuboskera.dev>
This commit is contained in:
parent
be658c3ff0
commit
501d920e16
1 changed files with 2 additions and 1 deletions
|
@ -3,9 +3,10 @@ apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-cd.notifications.fullname" . }}
|
name: {{ template "argo-cd.notifications.fullname" . }}
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
|
||||||
{{- if .Values.notifications.metrics.serviceMonitor.namespace }}
|
{{- if .Values.notifications.metrics.serviceMonitor.namespace }}
|
||||||
namespace: {{ .Values.notifications.metrics.serviceMonitor.namespace }}
|
namespace: {{ .Values.notifications.metrics.serviceMonitor.namespace }}
|
||||||
|
{{- else }}
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
|
||||||
|
|
Loading…
Reference in a new issue