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:
parent
3e03c44629
commit
e06be9178e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user