3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 04:53: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 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
@ -55,14 +55,14 @@ spec:
- bin/tootctl - bin/tootctl
- search - search
- deploy - deploy
{{- with .Values.mastodon.deploySearch.concurrency }} {{- with .Values.mastodon.hooks.deploySearch.concurrency }}
- '--concurrency' - '--concurrency'
- {{ . | quote }} - {{ . | quote }}
{{- end }} {{- end }}
{{- if .Values.mastodon.deploySearch.resetChewy }} {{- if .Values.mastodon.hooks.deploySearch.resetChewy }}
- '--reset-chewy' - '--reset-chewy'
{{- end }} {{- end }}
{{- with .Values.mastodon.deploySearch.batchSize }} {{- with .Values.mastodon.hooks.deploySearch.batchSize }}
- '--batch-size' - '--batch-size'
- {{ . | quote }} - {{ . | quote }}
{{- end }} {{- end }}

View File

@ -35,6 +35,10 @@ mastodon:
# Whether to perform DB migrations on `helm upgrade`. # Whether to perform DB migrations on `helm upgrade`.
dbMigrate: dbMigrate:
enabled: true enabled: true
deploySearch:
enabled: false
concurrency: 5
resetChewy: true
# Upload website assets to S3 before deploying using rclone. # Upload website assets to S3 before deploying using rclone.
# Whenever there is an update to Mastodon, sometimes there are assets files # 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 # 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 # Custom labels to add to kubernetes resources
#labels: #labels:
# -- deploy search to elastsicsearch. Requires .elasticsearch.enabled = true # -- deploy search to elastsicsearch. Requires .elasticsearch.enabled = true
deploySearch:
enabled: false
concurrency: 5
resetChewy: true
cron: cron:
# -- run `tootctl media remove` every week # -- run `tootctl media remove` every week
removeMedia: removeMedia: