fix(ingress): gate tenants-default-retry middleware on values flag (B.11)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user