Allow stopped single-writer outbox maintenance through Helm
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a140c4-354a-7823-8f0d-8f717397f786
This commit is contained in:
parent
84c78e072c
commit
dc042022f7
4 changed files with 96 additions and 4 deletions
|
|
@ -28,8 +28,10 @@ metadata:
|
|||
{{- include "flex-auth.labels" . | nindent 4 }}
|
||||
spec:
|
||||
{{- if .Values.outbox.enabled }}
|
||||
{{- if ne (int .Values.replicaCount) 1 }}
|
||||
{{- fail "outbox requires replicaCount=1: one writer per source and PVC" }}
|
||||
{{- $replicas := .Values.replicaCount }}
|
||||
{{- $numericKind := has (kindOf $replicas) (list "int" "int64" "int32" "uint" "uint64" "float64" "float32") }}
|
||||
{{- if or (not $numericKind) (not (or (eq (toString $replicas) "0") (eq (toString $replicas) "1"))) }}
|
||||
{{- fail "outbox requires numeric integer replicaCount 0 (stopped) or 1 (single writer)" }}
|
||||
{{- end }}
|
||||
strategy:
|
||||
type: Recreate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue