According to the docs, the hosts field on Gateways can have a namespace/ prefix. IOR should handle that case.
For QE team: The customer ticket associated with this work has a reproducer: OSSM-558. In addition, the PR for this work also contains unit tests.