Skip to content

Commit 0ff6870

Browse files
meili-bors[bot]felipevacarbrunoocasali
authored
Merge #252
252: Support dynamic serviceMonitor Namespace r=brunoocasali a=felipevacar In the default values the serviceMonitor.Namespace is available but this is not taking into account # Pull Request ## Related issue Fixes #<issue_number> ## What does this PR do? - ... ## PR checklist Please check if your PR fulfills the following requirements: - [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [ ] Have you read the contributing guidelines? - [ ] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: felipevacar <[email protected]> Co-authored-by: Bruno Casali <[email protected]>
2 parents ba35d75 + abc5e56 commit 0ff6870

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

charts/meilisearch/templates/serviceMonitor.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:
55
name: {{ include "meilisearch.fullname" . }}
6+
namespace: {{ default .Release.Namespace .Values.serviceMonitor.namespace }}
67
labels:
78
{{- include "meilisearch.labels" . | nindent 4 }}
89
{{- with .Values.serviceMonitor.additionalLabels }}

charts/meilisearch/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ command: []
185185
serviceMonitor:
186186
# -- Enable ServiceMonitor to configure scraping
187187
enabled: false
188+
# -- Set Namespace
189+
namespace: null
188190
# -- Set of labels to transfer from the Kubernetes Service onto the target
189191
additionalLabels: {}
190192
# -- Set scraping frequency

0 commit comments

Comments
 (0)