Skip to content

Commit 1bc1550

Browse files
meili-bors[bot]Jens Schulze
andauthored
Merge #175
175: feat: add Pod specific labels r=alallema a=jensschulze # Pull Request ## Related issue Fixes #174 ## What does this PR do? - This PR adds a new key named `podLabels` in `values.yaml`. Analogous to `podAnnotations` this key defines an object of key-value pairs. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] 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: Jens Schulze <[email protected]>
2 parents b57e1b2 + 06ec56c commit 1bc1550

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
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.2.0"
33
description: A Helm chart for the Meilisearch search engine
44
name: meilisearch
5-
version: 0.1.57
5+
version: 0.1.58
66
icon: https://res.cloudinary.com/meilisearch/image/upload/v1597822872/Logo/logo_img.svg
77
home: https://github.com/meilisearch/meilisearch-kubernetes/tree/main/charts/meilisearch
88
maintainers:

charts/meilisearch/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Helm chart for the Meilisearch search engine
44

5-
![Version: 0.1.57](https://img.shields.io/badge/Version-0.1.57-informational?style=flat-square) ![AppVersion: v1.2.0](https://img.shields.io/badge/AppVersion-v1.2.0-informational?style=flat-square)
5+
![Version: 0.1.58](https://img.shields.io/badge/Version-0.1.58-informational?style=flat-square) ![AppVersion: v1.2.0](https://img.shields.io/badge/AppVersion-v1.2.0-informational?style=flat-square)
66

77
Helm works as a package manager to run pre-configured Kubernetes resources.
88

@@ -87,6 +87,7 @@ You can also use `auth.existingMasterKeySecret` to use an existing secret that h
8787
| persistence.volume.mountPath | string | `"/meili_data"` | |
8888
| persistence.volume.name | string | `"data"` | |
8989
| podAnnotations | object | `{}` | |
90+
| podLabels | object | `{}` | Additional labels to add to the pod(s) only |
9091
| podSecurityContext | object | `{}` | |
9192
| readinessProbe.InitialDelaySeconds | int | `0` | |
9293
| readinessProbe.periodSeconds | int | `10` | |

charts/meilisearch/templates/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ spec:
1414
metadata:
1515
labels:
1616
{{- include "meilisearch.labels" . | nindent 8 }}
17+
{{- with .Values.podLabels }}
18+
{{- toYaml . | nindent 8 }}
19+
{{- end }}
1720
annotations:
1821
checksum/config: {{ (include (printf "%s/configmap.yaml" $.Template.BasePath) .) | sha256sum }}
1922
{{- with .Values.podAnnotations }}

charts/meilisearch/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ serviceAccount:
6464

6565
podAnnotations: {}
6666

67+
# -- Additional labels to add to the pod(s) only
68+
podLabels: {}
69+
6770
# -- Additional labels to add to all resources
6871
customLabels: {}
6972

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: 8893d8dad5cbf7ebfb0b70bb8b3214939bb540fb6fb780f39b2f3fb0d4b52d6f
78+
checksum/config: fef129b74ae6a9a6a35a67fb50c00a7de8ae197af18914953f48b6a666ffe083
7979
spec:
8080
serviceAccountName: meilisearch
8181
containers:

0 commit comments

Comments
 (0)