Patch in the VirtualService is not working when there is only one named route #3884
Open
2 tasks done
Labels
bug
Something isn't working
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: