Update servicemonitor.yaml to allow for namespace to be set

Signed-off-by: Nick Kampe <Kampe@users.noreply.github.com>
This commit is contained in:
Nick Kampe 2023-08-15 17:39:10 -05:00 committed by GitHub
parent 4e0698ec43
commit 4279a2b0b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "argo-rollouts.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
namespace: {{ default .Release.Namespace .Values.controller.metrics.serviceMonitor.namespace | quote }}
labels:
app.kubernetes.io/component: {{ .Values.controller.component }}
{{- include "argo-rollouts.labels" . | nindent 4 }}