fix(ingress): gate tenants-default-retry middleware on values flag (B.11)

This commit is contained in:
OdooSky v3
2026-05-05 17:53:06 +02:00
parent aca1e67fd9
commit 8ab695b93d
2 changed files with 19 additions and 0 deletions

View File

@@ -63,8 +63,18 @@ spec:
# bounded retry budget so transient Pod-not-ready windows
# during an Odoo restart don't surface as Traefik's default
# 404 to the customer. TLS-related fields below are unchanged.
#
# Gated on `.Values.ingress.useTenantsDefaults` so a cluster
# running with `traefik.enabled=false` in cluster-platform-v3
# (the Middleware would never be created) doesn't break every
# instance sync with "Middleware tenants-default-retry not
# found". Default true matches the standard platform shape;
# operators flip it to false only when running an externally-
# managed Traefik that doesn't carry our tenants-default-* set.
{{- if .Values.ingress.useTenantsDefaults | default true }}
middlewares:
- name: tenants-default-retry
{{- end }}
services:
- name: {{ include "instance.fullname" . }}-odoo
port: 8069