feat(argo-workflows): argo workflows chart to allow set the namespace of Prometheus ServiceMonitor. (#1104)

* feat(argo-workflows): argo workflows chart to allow set the namespace of Prometheus ServiceMonitor.

Signed-off-by: mugioka <okamugi0722@gmail.com>

* Bump minor chart version

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
mugi-o 2022-01-28 22:44:46 +09:00 committed by GitHub
parent cf57a71a15
commit 4c1ee93faf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View file

@ -3,6 +3,9 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "argo-workflows.controller.fullname" . }}
{{- with .Values.controller.serviceMonitor.namespace }}
namespace: {{ . }}
{{- end }}
labels:
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
{{- with .Values.controller.serviceMonitor.additionalLabels }}