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

internal/dag: Only process Gateways that match configuration #3380

Merged
merged 3 commits into from
Feb 22, 2021

Conversation

stevesloka
Copy link
Member

Removes the map of Gateway objects to only store a single since that's all Contour can be configured to use. Then filters on storing the Gateway that matches its configuration.

Created off of #3370 so that should merge first before this.

@stevesloka stevesloka added this to the 1.13.0 milestone Feb 19, 2021
@codecov
Copy link

codecov bot commented Feb 19, 2021

Codecov Report

Merging #3380 (05be1ac) into main (2569c4e) will increase coverage by 0.00%.
The diff coverage is 72.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3380   +/-   ##
=======================================
  Coverage   75.80%   75.80%           
=======================================
  Files          98       98           
  Lines        6543     6556   +13     
=======================================
+ Hits         4960     4970   +10     
- Misses       1475     1479    +4     
+ Partials      108      107    -1     
Impacted Files Coverage Δ
cmd/contour/serve.go 0.00% <0.00%> (ø)
internal/dag/cache.go 91.51% <94.73%> (+0.54%) ⬆️

@sunjayBhatia
Copy link
Member

sunjayBhatia commented Feb 22, 2021

Moving to 1.14.0 as this is still a draft, @stevesloka please advise if you would like to get this in to 1.13.0!

@sunjayBhatia sunjayBhatia modified the milestones: 1.13.0, 1.14.0 Feb 22, 2021
@stevesloka stevesloka marked this pull request as ready for review February 22, 2021 18:31
@stevesloka stevesloka requested a review from a team as a code owner February 22, 2021 18:31
@stevesloka stevesloka requested review from sunjayBhatia and youngnick and removed request for a team February 22, 2021 18:31
Contour only cache Gateways that match what's configured for Contour.

Updates projectcontour#3351

Signed-off-by: Steve Sloka <[email protected]>
@stevesloka
Copy link
Member Author

@sunjayBhatia I'd like to get this into 1.13. It was draft since I was stacking PRs.

Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

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

couple comments.

Also, just confirming, but this isn't intended to limit the HTTPRoutes that get processed, right? That's coming in a subsequent PR?

@skriss skriss modified the milestones: 1.14.0, 1.13.0 Feb 22, 2021
@skriss
Copy link
Member

skriss commented Feb 22, 2021

Moved back to 1.13, shouldn't be an issue.

Signed-off-by: Steve Sloka <[email protected]>
Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

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

LGTM

@skriss skriss merged commit 9f73a13 into projectcontour:main Feb 22, 2021
iyacontrol pushed a commit to iyacontrol/contour that referenced this pull request Feb 23, 2021
…contour#3380)

Only cache Gateways that match what's configured for Contour.

Updates projectcontour#3351

Signed-off-by: Steve Sloka <[email protected]>
Signed-off-by: iyacontrol <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants