Skip to content

Commit 9b6f80b

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]> Co-authored-by: Bruno Casali <[email protected]> Co-authored-by: brunoocasali <[email protected]>
2 parents ba35d75 + d9afefc commit 9b6f80b

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

charts/meilisearch/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: "v1.14.0"
33
description: A Helm chart for the Meilisearch search engine
44
name: meilisearch
5-
version: 0.12.1
5+
version: 0.12.2
66
icon: https://raw.githubusercontent.com/meilisearch/integration-guides/main/assets/logos/logo.svg
77
home: https://github.com/meilisearch/meilisearch-kubernetes/tree/main/charts/meilisearch
88
maintainers:

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

manifests/meilisearch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ spec:
7575
app.kubernetes.io/component: search-engine
7676
app.kubernetes.io/part-of: meilisearch
7777
annotations:
78-
checksum/config: e9b299959eea060a9071d120c09445cace56d11be3097866a65e59f89b179229
78+
checksum/config: be95af245aea2dae315d177c62e9942bebacb57bcd9a2d4622045e7cdf4267e4
7979
spec:
8080
serviceAccountName: meilisearch
8181
securityContext:

0 commit comments

Comments
 (0)