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:
parent
7e98a85db8
commit
ea89956130
|
@ -11,12 +11,13 @@ metadata:
|
||||||
app.kubernetes.io/part-of: rails
|
app.kubernetes.io/part-of: rails
|
||||||
spec:
|
spec:
|
||||||
{{- if (has "scheduler" .queues) }}
|
{{- 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:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
{{- else }}
|
|
||||||
replicas: {{ .replicas }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
replicas: {{ .replicas }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "mastodon.selectorLabels" $context | nindent 6 }}
|
{{- include "mastodon.selectorLabels" $context | nindent 6 }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user