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

optimize east-west routes creation #1630

Merged
merged 7 commits into from
Dec 10, 2020
Merged

Conversation

szuecs
Copy link
Member

@szuecs szuecs commented Dec 3, 2020

Signed-off-by: Sandor Szücs [email protected]

@@ -318,17 +318,23 @@ func (ing *ingress) addEndpointsRule(ic ingressContext, host string, prule *defi
redirect.setHostDisabled(host)
}

if ing.kubernetesEnableEastWest {
ewRoute := createEastWestRouteIng(ing.eastWestDomainRegexpPostfix, ic.ingress.Metadata.Name, ic.ingress.Metadata.Namespace, endpointsRoute)
ic.addHostRoute(ewRoute.HostRegexps[0], ewRoute)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should use the host and not the host regexp as the key here. See line 350, and also the test with catchall

Copy link
Member Author

Choose a reason for hiding this comment

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

true

Signed-off-by: Sandor Szücs <[email protected]>
Signed-off-by: Sandor Szücs <[email protected]>
@aryszka
Copy link
Contributor

aryszka commented Dec 10, 2020

👍

1 similar comment
@szuecs
Copy link
Member Author

szuecs commented Dec 10, 2020

👍

@szuecs
Copy link
Member Author

szuecs commented Dec 10, 2020

errors in the pipeline are only caused by zappr change and the PR is older than the merged one

@szuecs szuecs merged commit 4dcbf4b into master Dec 10, 2020
@szuecs szuecs deleted the optimize/eastwest-route-creation branch December 10, 2020 18:26
@szuecs szuecs restored the optimize/eastwest-route-creation branch December 15, 2020 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants