Skip to content

Commit 3a15ec5

Browse files
authored
feat: onboard meilisearch (algolia/elastic open-source alternative) (#672)
* fix/fix-dagster * fix: fix pr comment * feat: onboard meilisearch * fix(sftpgo): fix sftpgo vendored image * chore(unleash): fix notes.tpl
1 parent 1a03276 commit 3a15ec5

33 files changed

+388
-6
lines changed

meilisearch/Pluralfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
REPO meilisearch
2+
ATTRIBUTES Plural repository.yaml
3+
4+
TF terraform/*
5+
HELM helm/*
6+
RECIPE plural/recipes/*
7+
TAG plural/tags/**/*
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: meilisearch
3+
repository: https://meilisearch.github.io/meilisearch-kubernetes
4+
version: 0.1.50
5+
digest: sha256:50163e29f375f032502fd069210c8203b06793c7a8f2beaec90cabe5f909ee12
6+
generated: "2023-04-24T21:46:59.919934+02:00"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v2
2+
name: meilisearch
3+
description: helm chart for meilisearch
4+
type: application
5+
version: 0.1.0
6+
appVersion: "v1.1.1"
7+
dependencies:
8+
- name: meilisearch
9+
version: 0.1.50
10+
repository: https://meilisearch.github.io/meilisearch-kubernetes
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A helm chart for meilisearch
6.68 KB
Binary file not shown.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: plural.sh/v1alpha1
2+
kind: Dependencies
3+
metadata:
4+
application: true
5+
description: Deploys meilisearch crafted for the target cloud
6+
spec:
7+
dependencies:
8+
- type: helm
9+
name: bootstrap
10+
repo: bootstrap
11+
version: '>= 0.5.1'
12+
- type: helm
13+
name: ingress-nginx
14+
repo: ingress-nginx
15+
version: ">= 0.1.2"
16+
- type: terraform
17+
name: aws
18+
repo: meilisearch
19+
version: '>= 0.1.0'
20+
optional: true
21+
- type: terraform
22+
name: azure
23+
repo: meilisearch
24+
version: '>= 0.1.0'
25+
optional: true
26+
- type: terraform
27+
name: gcp
28+
repo: meilisearch
29+
version: '>= 0.1.0'
30+
optional: true
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "meilisearch-plural.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "meilisearch-plural.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "meilisearch-plural.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "meilisearch-plural.labels" -}}
37+
helm.sh/chart: {{ include "meilisearch-plural.chart" . }}
38+
{{ include "meilisearch-plural.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "meilisearch-plural.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "meilisearch-plural.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "meilisearch-plural.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "meilisearch-plural.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}
63+
64+
{{- define "meilisearch-plural.secretName" -}}
65+
{{- printf "%s-secret" (include "meilisearch-plural.fullname" .) }}
66+
{{- end }}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: {{ include "meilisearch-plural.secretName" . }}
5+
labels:
6+
{{ include "meilisearch-plural.labels" . | indent 4 }}
7+
stringData:
8+
MEILI_MASTER_KEY: {{ .Values.meilisearch.masterKey }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
meilisearch:
2+
masterKey: CHANGE_ME
3+
image:
4+
repository: getmeili/meilisearch # TODO: change this after the vendor image is published
5+
tag: v1.1.1
6+
ingress:
7+
enabled: true
8+
className: "nginx"
9+
annotations:
10+
kubernetes.io/tls-acme: "true"
11+
cert-manager.io/cluster-issuer: letsencrypt-prod
12+
persistence:
13+
enabled: true

0 commit comments

Comments
 (0)