Skip to content

Commit 18dae76

Browse files
bors[bot]Thearas
andauthored
Merge #86
86: Add annotations to templates r=alallema a=Thearas # Pull Request ## What does this PR do? Implement #66 . I add `annotations` to pvc, svc and serviceAccount. I saw that no one had done this issue and I just had the time😊. I am a beginner in Helm, if there is a mistake, please feel free to point out. PTAL `@eskombro` Co-authored-by: Thearas <[email protected]> Co-authored-by: Thearas <[email protected]>
2 parents 9790b8d + 7cf0fc8 commit 18dae76

File tree

6 files changed

+24
-1
lines changed

6 files changed

+24
-1
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: "v0.23.0"
33
description: A Helm chart for the Meilisearch search engine
44
name: meilisearch
5-
version: 0.1.18
5+
version: 0.1.19
66
icon: https://res.cloudinary.com/meilisearch/image/upload/v1597822872/Logo/logo_img.svg
77
home: https://github.com/meilisearch/meilisearch-kubernetes/charts
88
maintainers:

charts/meilisearch/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ helm uninstall <your-service-name>
5858
| | |
5959
| `image.pullPolicy` | MeiliSearch image pull policy | `IfNotPresent`
6060
| | |
61+
| `serviceAccount.annotations` | Additional annotations for service account | `{}`
62+
| | |
6163
| `ingress.enabled` | Enable ingress controller resource | `false`
6264
| | |
6365
| `ingress.annotations` | Ingress annotations | `{}`
@@ -72,6 +74,8 @@ helm uninstall <your-service-name>
7274
| | |
7375
| `service.type` | Kubernetes Service type | `7700`
7476
| | |
77+
| `service.annotations` | Additional annotations for service | `{}`
78+
| | |
7579
| `persistence.enabled` | Enable persistence using PVC | `false`
7680
| | |
7781
| `persistence.accessMode` | PVC Access Mode | `ReadWriteOnce`
@@ -80,6 +84,8 @@ helm uninstall <your-service-name>
8084
| | |
8185
| `persistence.size` | PVC Storage Request | `10Gi`
8286
| | |
87+
| `persistence.annotations` | Additional annotations for PVC | `{}`
88+
| | |
8389
| `resources` | Resources allocation (Requests and Limits) | `{}`
8490
| | |
8591
| `tolerations` | Tolerations for pod assignment | `[]`

charts/meilisearch/templates/pvc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ metadata:
1111
{{- with .Values.customLabels }}
1212
{{- toYaml . | nindent 4 }}
1313
{{- end }}
14+
{{- with .Values.persistence.annotations }}
15+
annotations:
16+
{{ toYaml . | nindent 4 }}
17+
{{- end }}
1418
spec:
1519
accessModes:
1620
- {{ .Values.persistence.accessMode | quote }}

charts/meilisearch/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ metadata:
1010
{{- with .Values.customLabels }}
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
13+
{{- with .Values.service.annotations }}
14+
annotations:
15+
{{ toYaml . | nindent 4 }}
16+
{{- end }}
1317
spec:
1418
type: {{ .Values.service.type }}
1519
ports:

charts/meilisearch/templates/serviceaccount.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ metadata:
1010
{{- with .Values.customLabels }}
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
13+
{{- with .Values.serviceAccount.annotations }}
14+
annotations:
15+
{{ toYaml . | nindent 4 }}
16+
{{- end }}

charts/meilisearch/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ environment:
3030
# secret. Otherwise the below value of MEILI_MASTER_KEY will be used instead.
3131
# MEILI_MASTER_KEY:
3232

33+
serviceAccount:
34+
annotations: {}
35+
3336
podAnnotations: {}
3437

3538
customLabels: {}
3639

3740
service:
3841
type: ClusterIP
3942
port: 7700
43+
annotations: {}
4044

4145
container:
4246
containerPort: 7700
@@ -65,6 +69,7 @@ persistence:
6569
##
6670
# storageClass: "-"
6771
size: 10Gi
72+
annotations: {}
6873
volume:
6974
name: data
7075
mountPath: /data.ms

0 commit comments

Comments
 (0)