You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
traffic-split: update root service selector & targetPort usage (openservicemesh#4902)
This change does the following:
1. Fixes the incorrect legacy behavior where traffic
directed to a root service specified in a TrafficSplit
resource can direct traffic to pods that do not match
the root service's selector. Not only was this behavior
confusing, it also significantly complicated code paths
that required special handling of this scenario that is
unintuitive. Going forward, the root service selector
must match pods for traffic splitting to those pods to
function. Existing e2e tests relying on this unsupported
behavior have been updated to correctly configure selectors
and labels on services and pods backing them. A redundant
test explicitly testing the only supported scenario after
this change has been removed. The automated demo has
also been updated to correctly configure the selector and
labels.
2. Fixesopenservicemesh#4894, where the TargetPort on the root service was
expected to match the ContainerPort on the pod backing
the service. Per SMI's TrafficSplit API, the TargetPort
on the root does not need to match the ContainerPort
on the pod, thus allowing newer application versions
to change the ports they listen on without needing
to update the root service definition.
Signed-off-by: Shashank Ram <[email protected]>
0 commit comments