3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 04:53:21 +00:00

Add error message when scheduler queue has more than 1 replica

This commit is contained in:
Alex Nordlund 2022-11-26 22:15:25 +01:00
parent 7e98a85db8
commit ea89956130

View File

@ -11,12 +11,13 @@ metadata:
app.kubernetes.io/part-of: rails
spec:
{{- if (has "scheduler" .queues) }}
replicas: {{ min .replicas 1 }}
{{- if (gt (int .replicas) 1) }}
{{ fail "The scheduler queue should never have more than 1 replicas" }}
{{- end }}
strategy:
type: Recreate
{{- else }}
replicas: {{ .replicas }}
{{- end }}
replicas: {{ .replicas }}
selector:
matchLabels:
{{- include "mastodon.selectorLabels" $context | nindent 6 }}