Skip to content

Commit b932eda

Browse files
Add initContainer support
1 parent f7efaf7 commit b932eda

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

charts/meilisearch/templates/statefulset.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ spec:
4646
{{- if .Values.volumes }}
4747
{{ toYaml .Values.volumes | indent 8 }}
4848
{{- end }}
49+
50+
{{ if .Values.initContainers }}
51+
initContainers:
52+
{{ toYaml .Values.initContainers | nindent 8 }}
53+
{{- end }}
54+
4955
containers:
5056
- name: {{ .Chart.Name }}
5157
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

charts/meilisearch/values.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ serviceAccount:
5555
# -- Should this chart create a service account
5656
create: true
5757
# -- Custom service account name, if not created by this chart
58-
name: ''
58+
name: ""
5959
# -- Additional annotations for created service account
6060
annotations: {}
6161

@@ -98,7 +98,8 @@ ingress:
9898
# -- Ingress ingressClassName
9999
className: nginx
100100
# -- Ingress annotations
101-
annotations: {}
101+
annotations:
102+
{}
102103
# kubernetes.io/ingress.class: nginx
103104
# -- Path within the host
104105
path: /
@@ -140,7 +141,8 @@ persistence:
140141
mountPath: /meili_data
141142

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

166+
# -- Additional initContainers for pod
167+
initContainers: []
168+
164169
# -- Node labels for pod assignment
165170
nodeSelector: {}
166171

manifests/meilisearch.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ spec:
8989
emptyDir: {}
9090
- name: data
9191
emptyDir: {}
92+
93+
94+
9295
containers:
9396
- name: meilisearch
9497
image: "getmeili/meilisearch:v1.7.0"

0 commit comments

Comments
 (0)