Allow stopped single-writer outbox maintenance through Helm
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a140c4-354a-7823-8f0d-8f717397f786
This commit is contained in:
tegwick 2026-10-16 20:25:05 +02:00
parent 84c78e072c
commit dc042022f7
4 changed files with 96 additions and 4 deletions

View file

@ -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