fix(argo-cd): add namespace field for namespace scoped resources (#1937)

This commit is contained in:
Jakub Oskera 2023-04-13 16:08:34 +02:00 committed by GitHub
parent 7eeb70f711
commit 88d690ef62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
90 changed files with 92 additions and 27 deletions

View file

@ -3,9 +3,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "argo-cd.controller.fullname" . }}
{{- with .Values.controller.metrics.serviceMonitor.namespace }}
namespace: {{ . }}
{{- end }}
namespace: {{ default .Release.Namespace .Values.controller.metrics.serviceMonitor.namespace | quote }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
{{- with .Values.controller.metrics.serviceMonitor.selector }}