mirror of
https://github.com/mastodon/chart
synced 2025-05-17 20:43:21 +00:00
Add error message when scheduler queue has more than 1 replica
This commit is contained in:
parent
7e98a85db8
commit
ea89956130
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user