Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 7 additions & 0 deletions charts/nextcloud/templates/metrics-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ metadata:
{{- end }}
spec:
jobLabel: {{ .Values.metrics.serviceMonitor.jobLabel | quote }}
namespaceSelector:
matchNames:
{{- if .Values.metrics.serviceMonitor.namespace }}
Copy link
Collaborator

@wrenix wrenix Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

      {{- with .Values.metrics.serviceMonitor.namespaces }}
      {{- toYaml . | nindent 6 }}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. with is easy reable
  2. so multiple namespaces are configurable

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree

- {{ .Values.metrics.serviceMonitor.namespace | quote }}
{{- else }}
- {{ .Release.Namespace | quote }}
{{- end }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "nextcloud.name" . }}
Expand Down