Add config (path and method) for setHeaderRoute
Opened this issue · 0 comments
danielsantosdfs13 commented
Summary
Currently, setHeaderRoute
adds a new route in the virtualService but only allows configuring a match with headerName
and headerValue
. It would be interesting to also allow configuring the method
and path
settings similar to setMirrorRoute
.
Use Cases
Situations where the environment uses a common FQDN for more than one workload api.foo.local
and routing is done using path /v1/bar, /v1/foo
. With the current scenario, activating the setHeaderRoute
will cause overlap and requests will be directed to the incorrect target.
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.