Skip to content

Commit a393862

Browse files
bors[bot]nlamiraultalallema
authored
Merge #152
152: Add posibility to use an existing persistence claim r=alallema a=nlamirault # Pull Request ## Related issue Fixes #82 ## What does this PR do? - ... ## 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: Nicolas Lamirault <nicolas.lamirault@gmail.com> Co-authored-by: Amélie <alallema@users.noreply.github.com>
2 parents 258704d + 3322b29 commit a393862

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

charts/meilisearch/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: "v0.30.0"
33
description: A Helm chart for the Meilisearch search engine
44
name: meilisearch
5-
version: 0.1.46
5+
version: 0.1.47
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

+2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ helm uninstall <your-service-name>
9292
| | |
9393
| `persistence.enabled` | Enable persistence using PVC | `false`
9494
| | |
95+
| `persistence.existingClaim` | Existing PVC | `false`
96+
| | |
9597
| `persistence.accessMode` | PVC Access Mode | `ReadWriteOnce`
9698
| | |
9799
| `persistence.storageClass` | PVC Storage Class | `-` (No storage class)

charts/meilisearch/templates/pvc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{- if .Values.persistence.enabled }}
2+
{{- if not .Values.persistence.existingClaim -}}
23
kind: PersistentVolumeClaim
34
apiVersion: v1
45
metadata:
@@ -23,3 +24,4 @@ spec:
2324
{{- end }}
2425
{{- end }}
2526
{{- end }}
27+
{{- end }}

charts/meilisearch/templates/statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
{{- if .Values.persistence.enabled }}
3030
- name: {{ .Values.persistence.volume.name }}
3131
persistentVolumeClaim:
32-
claimName: {{ include "meilisearch.fullname" . }}
32+
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ include "meilisearch.fullname" . }}{{- end }}
3333
{{- end }}
3434
{{- if .Values.volumes }}
3535
{{ toYaml .Values.volumes | indent 8 }}

charts/meilisearch/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ persistence:
8686
## GKE, AWS & OpenStack)
8787
##
8888
# storageClass: "-"
89+
90+
## Data Persistent Volume existing claim name
91+
## Requires persistence.enabled: true
92+
## If defined, PVC must be created manually before volume will be bound
93+
existingClaim: ""
8994
size: 10Gi
9095
annotations: {}
9196
volume:

0 commit comments

Comments
 (0)