mirror of
https://github.com/mastodon/chart
synced 2025-05-17 20:43:21 +00:00
DRY the deploySearch settings names
This commit is contained in:
parent
2cf807049f
commit
fa4f97e77f
|
@ -47,7 +47,8 @@ spec:
|
||||||
- name: {{ include "mastodon.fullname" . }}-deploy-search
|
- name: {{ include "mastodon.fullname" . }}-deploy-search
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
{{- with .Values.mastodon.hooks.deploySearch.resources }}
|
{{- with .Values.mastodon.hooks.deploySearch }}
|
||||||
|
{{- with .resources }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -55,24 +56,25 @@ spec:
|
||||||
- bin/tootctl
|
- bin/tootctl
|
||||||
- search
|
- search
|
||||||
- deploy
|
- deploy
|
||||||
{{- with .Values.mastodon.hooks.deploySearch.concurrency }}
|
{{- with .concurrency }}
|
||||||
- '--concurrency'
|
- '--concurrency'
|
||||||
- {{ . | quote }}
|
- {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.hooks.deploySearch.resetChewy }}
|
{{- if .resetChewy }}
|
||||||
- '--reset-chewy'
|
- '--reset-chewy'
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.mastodon.hooks.deploySearch.batchSize }}
|
{{- with .batchSize }}
|
||||||
- '--batch-size'
|
- '--batch-size'
|
||||||
- {{ . | quote }}
|
- {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.mastodon.hooks.deploySearch.only }}
|
{{- with .only }}
|
||||||
{{- if not (has . (list "instances" "accounts" "tags" "statuses" "public_statuses")) -}}
|
{{- 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"}}
|
{{ fail "mastodon.hooks.deploySearch.only: Value must be one of the following words: instances, accounts, tags, statuses, public_statuses"}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- '--only'
|
- '--only'
|
||||||
- {{ . | quote }}
|
- {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
|
|
Loading…
Reference in New Issue
Block a user