Skip to content

Commit

Permalink
Add flag for single-index "only" argument
Browse files Browse the repository at this point in the history
  • Loading branch information
abbottmg committed Feb 4, 2025
1 parent e2594f6 commit dcfe366
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/job-deploy-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,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
Expand Down

0 comments on commit dcfe366

Please sign in to comment.