Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initContainer support #227

Merged
merged 3 commits into from
Apr 4, 2024
Merged
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/meilisearch/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "v1.7.0"
description: A Helm chart for the Meilisearch search engine
name: meilisearch
version: 0.5.0
version: 0.6.0
icon: https://res.cloudinary.com/meilisearch/image/upload/v1597822872/Logo/logo_img.svg
home: https://github.com/meilisearch/meilisearch-kubernetes/tree/main/charts/meilisearch
maintainers:
Expand Down
6 changes: 6 additions & 0 deletions charts/meilisearch/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ spec:
{{- if .Values.volumes }}
{{ toYaml .Values.volumes | indent 8 }}
{{- end }}

{{ if .Values.initContainers }}
initContainers:
{{ toYaml .Values.initContainers | nindent 8 }}
{{- end }}

containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
11 changes: 8 additions & 3 deletions charts/meilisearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ serviceAccount:
# -- Should this chart create a service account
create: true
# -- Custom service account name, if not created by this chart
name: ''
name: ""
# -- Additional annotations for created service account
annotations: {}

Expand Down Expand Up @@ -98,7 +98,8 @@ ingress:
# -- Ingress ingressClassName
className: nginx
# -- Ingress annotations
annotations: {}
annotations:
{}
# kubernetes.io/ingress.class: nginx
# -- Path within the host
path: /
Expand Down Expand Up @@ -140,7 +141,8 @@ persistence:
mountPath: /meili_data

# -- Resources allocation (Requests and Limits)
resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand All @@ -161,6 +163,9 @@ volumeMounts: []
# -- Additional containers for pod
containers: []

# -- Additional initContainers for pod
initContainers: []

# -- Node labels for pod assignment
nodeSelector: {}

Expand Down
5 changes: 4 additions & 1 deletion manifests/meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:
app.kubernetes.io/component: search-engine
app.kubernetes.io/part-of: meilisearch
annotations:
checksum/config: 468906c495caf47f44d906b3f928bbf1c5ee0fd11b345f9d07cbbc6d626b8fcf
checksum/config: 35d680140fa9645374b032a4c6f416b2932bd677d97949691b714ece482ffa69
spec:
serviceAccountName: meilisearch
securityContext:
Expand All @@ -89,6 +89,9 @@ spec:
emptyDir: {}
- name: data
emptyDir: {}



containers:
- name: meilisearch
image: "getmeili/meilisearch:v1.7.0"
Expand Down