3
0
mirror of https://github.com/mastodon/chart synced 2025-05-17 20:43:21 +00:00

Move deploySearch stanza under hooks

This commit is contained in:
Matthew Abbott 2025-02-01 23:53:24 -06:00
parent 16a7aab10d
commit 3e03c44629
No known key found for this signature in database
2 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
{{- if and .Values.mastodon.deploySearch.enabled .Values.elasticsearch.enabled -}}
{{- if and .Values.mastodon.hooks.deploySearch.enabled .Values.elasticsearch.enabled -}}
apiVersion: batch/v1
kind: Job
metadata:
@ -55,14 +55,14 @@ spec:
- bin/tootctl
- search
- deploy
{{- with .Values.mastodon.deploySearch.concurrency }}
{{- with .Values.mastodon.hooks.deploySearch.concurrency }}
- '--concurrency'
- {{ . | quote }}
{{- end }}
{{- if .Values.mastodon.deploySearch.resetChewy }}
{{- if .Values.mastodon.hooks.deploySearch.resetChewy }}
- '--reset-chewy'
{{- end }}
{{- with .Values.mastodon.deploySearch.batchSize }}
{{- with .Values.mastodon.hooks.deploySearch.batchSize }}
- '--batch-size'
- {{ . | quote }}
{{- end }}

View File

@ -35,6 +35,10 @@ mastodon:
# Whether to perform DB migrations on `helm upgrade`.
dbMigrate:
enabled: true
deploySearch:
enabled: false
concurrency: 5
resetChewy: true
# Upload website assets to S3 before deploying using rclone.
# Whenever there is an update to Mastodon, sometimes there are assets files
# that are renamed. As the pods are getting redeployed, and old/new pods are
@ -60,10 +64,6 @@ mastodon:
# Custom labels to add to kubernetes resources
#labels:
# -- deploy search to elastsicsearch. Requires .elasticsearch.enabled = true
deploySearch:
enabled: false
concurrency: 5
resetChewy: true
cron:
# -- run `tootctl media remove` every week
removeMedia: