Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

istio: Add destination port when port discovery and delegation are true #1145

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

mfamador
Copy link
Contributor

@mfamador mfamador commented Mar 16, 2022

When we set delegation: true in an Istio canary, and we have PortDiscovery true, since having delegation results in having no gateways the destination route gets no port.
This small change makes the port to be added to the destination route when we have PortDiscovery and no gateways in the VirtualService due to having delegation.

Signed-off-by: Marco Amador amador.marco@gmail.com

…true

Signed-off-by: Marco Amador <amador.marco@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #1145 (c7cbb72) into main (eca6fa7) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1145   +/-   ##
=======================================
  Coverage   56.69%   56.69%           
=======================================
  Files          79       79           
  Lines        6586     6586           
=======================================
  Hits         3734     3734           
  Misses       2297     2297           
  Partials      555      555           
Impacted Files Coverage Δ
pkg/router/istio.go 81.07% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eca6fa7...c7cbb72. Read the comment docs.

@stefanprodan stefanprodan added the kind/enhancement Improvement request for an existing feature label Mar 18, 2022
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @mfamador

@stefanprodan stefanprodan changed the title add destination port when port discovery and delegation are true istio: Add destination port when port discovery and delegation are true Mar 18, 2022
@stefanprodan stefanprodan merged commit 08deddc into fluxcd:main Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvement request for an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants