Skip to content

Commit 0e2c006

Browse files
Merge pull request #524 from wrenix/fix/metrics-namespaceselector
2 parents 0ffea21 + 704829e commit 0e2c006

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

charts/nextcloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 4.5.18
3+
version: 4.5.19
44
appVersion: 28.0.2
55
description: A file sharing server that puts the control and security of your own data back into your hands.
66
keywords:

charts/nextcloud/templates/metrics/servicemonitor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ spec:
2121
app.kubernetes.io/instance: {{ .Release.Name }}
2222
app.kubernetes.io/component: metrics
2323
namespaceSelector:
24+
{{- with .Values.metrics.serviceMonitor.namespaceSelector }}
25+
{{- toYaml . | nindent 4 }}
26+
{{- else }}
2427
matchNames:
2528
- {{ .Release.Namespace | quote }}
29+
{{- end }}
2630
endpoints:
2731
- port: metrics
2832
path: "/"

charts/nextcloud/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@ metrics:
517517
##
518518
namespace: ""
519519

520+
## @param metrics.serviceMonitor.namespaceSelector The selector of the namespace where the target service is located (defaults to the release namespace)
521+
namespaceSelector:
522+
520523
## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
521524
##
522525
jobLabel: ""

0 commit comments

Comments
 (0)