diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index 183f77e3..30458532 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 3.5.12 +version: 3.5.13 appVersion: 26.0.1 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/charts/nextcloud/templates/metrics-servicemonitor.yaml b/charts/nextcloud/templates/metrics-servicemonitor.yaml index ba55c38c..630a1ac6 100644 --- a/charts/nextcloud/templates/metrics-servicemonitor.yaml +++ b/charts/nextcloud/templates/metrics-servicemonitor.yaml @@ -19,6 +19,13 @@ metadata: {{- end }} spec: jobLabel: {{ .Values.metrics.serviceMonitor.jobLabel | quote }} + namespaceSelector: + matchNames: + {{- if .Values.metrics.serviceMonitor.namespace }} + - {{ .Values.metrics.serviceMonitor.namespace | quote }} + {{- else }} + - {{ .Release.Namespace | quote }} + {{- end }} selector: matchLabels: app.kubernetes.io/name: {{ include "nextcloud.name" . }}