mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 17:25:01 +00:00
Problem: It's difficult to map and reduce the collection of project hosts when configuring related Certificate, Gateway.spec.servers, VirtualService, and auth proxy cookie domain settings. Solution: Define #ProjectHosts which takes a project and provides Hosts which is a struct with a fqdn key and a #CertInfo value. The #CertInfo definition is intended to provide everything need to reduce the Hosts property to structs usful for the problematic resources mentioned previously. Result: Gateway.spec.servers are mapped using #ProjectHosts Next step is to map the Certificate resources on the provisioner cluster.