Enable egress gateway for bb-common 1.6.0 packages
General MR
Summary
-
Enables the shared egress waypoint for every bb-common 1.6.x subchart package by passing
routes.defaults.outbound.egressGatewayfrom the umbrella. Enabling the egress gateway remains opt-in viaistio.egressGateway.enabled, in ambient only. -
Refactors existing outbound routes to account for the inability for multiple ServiceEntries to register the same host on a shared egress gateway. Shared hosts are declared once in the istio-egress-gateway values and the package outbound route is disabled while the egress gateway is enabled.
-
There were a number of ServiceEntries declared as outbound routes that represented package's VirtualServices which are accounted for via bb-common's
<package>-internalServiceEntry creation, so those were removed as outbound routes.
Relevant logs/screenshots
- Pipeline #5878134 green on all clean-install scenarios, including
egress-gateway.
Linked Issue
Closes #3452
Upgrade Notices
No action unless istio.egressGateway.enabled: true in ambient mode. Then:
- Package outbound routes bind to the waypoint by default; set
egressGateway: falseon a route to send it direct. - Shared hosts (repo1, registry1, Docker Hub, external SSO, gitlab external redis, thanos object store) are owned by the
istio-egress-gatewayrelease. Remove any custom route or ServiceEntry for those hosts from package values; a duplicate is silently ignored. - Wildcard hosts cannot use the waypoint and reach their hosts directly.