mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 04:33:36 +09:00
Add cozy-lib.ns-host-required: it returns the tenant apex like cozy-lib.ns-host, but fails the render when the platform has injected _namespace and its host is empty AND the app sets no host override (.Values.host). Charts that compose a service hostname as <sub>.<apex> otherwise emit a malformed trailing-dot host silently when the apex is unset. The guard is scoped to the injected state, so a standalone render (helm lint / helm template with no _namespace, or an empty _namespace map) stays renderable. This mirrors the gateway path, which fails on an empty apex only when a Gateway is actually rendered. Callers use it only at a hostname-emitting site, so a tenant with no apex and no public exposure is unaffected. Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>