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
When the VirtualService has only 1 HTTPRoute, with the defined name, and this name is not defined in Rollout (trafficRouting.istio.virtualService.routes), the patch is not performed.
The doc mentions that (optional if there is a single route in VirtualService, required otherwise):
trafficRouting:
istio:
virtualService:
name: rollout-vsvc # requiredroutes:
- primary # optional if there is a single route in VirtualService, required otherwise
Checklist:
Describe the bug
When the VirtualService has only 1 HTTPRoute, with the defined
name
, and this name is not defined inRollout
(trafficRouting.istio.virtualService.routes
), the patch is not performed.To Reproduce
The doc mentions that (optional if there is a single route in VirtualService, required otherwise):
Ref: https://argo-rollouts.readthedocs.io/en/stable/features/traffic-management/istio/#host-level-traffic-splitting
But it doesn't happen here:
argo-rollouts/rollout/trafficrouting/istio/istio.go
Lines 903 to 913 in 50300e5
Maybe, the code should first check if the VirtualService has only one route, and then return it (I've tested it and it worked):
Could you confirm if this is enough? I can open a PR with this fix.
Expected behavior
The
weight
field changed according to the promotion of the steps.Version
v1.7.2
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered: