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

Add flag for single-index "only" argument

This commit is contained in:
Matthew Abbott 2025-02-04 15:14:15 -06:00
parent 3e03c44629
commit e06be9178e
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,13 @@ spec:
- '--batch-size'
- {{ . | quote }}
{{- end }}
{{- with .Values.mastodon.hooks.deploySearch.only }}
{{- if not (has . (list "instances" "accounts" "tags" "statuses" "public_statuses")) -}}
{{ fail "mastodon.hooks.deploySearch.only: Value must be one of the following words: instances, accounts, tags, statuses, public_statuses"}}
{{- end }}
- '--only'
- {{ . | quote }}
{{- end }}
envFrom:
- configMapRef:
name: {{ include "mastodon.fullname" . }}-env

View File

@ -39,6 +39,7 @@ mastodon:
enabled: false
concurrency: 5
resetChewy: true
only: "" # one index name. Possible values: instances, accounts, tags, statuses, public_statuses
# 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