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: Watch namespaces from k8s api #3402

Merged
merged 2 commits into from
Mar 1, 2021

Conversation

stevesloka
Copy link
Member

@stevesloka stevesloka commented Feb 24, 2021

The RouteBindingSelector in Gateway API has an option to only process routes which exist
in a namespace based upon a selector defined in the Gateway.

When "Selector" is chosen then only Routes in namespaces selected by the selector may be used by this Gateway (https://gateway-api.sigs.k8s.io/spec/#networking.x-k8s.io/v1alpha1.RouteSelectType).

Added release note action label since this updates RBAC permissions, but only needed if Gateway APIs are present.

Updates #3401

Signed-off-by: Steve Sloka slokas@vmware.com

@stevesloka stevesloka added the release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. label Feb 24, 2021
@stevesloka stevesloka added this to the 1.14.0 milestone Feb 24, 2021
@stevesloka stevesloka requested a review from a team as a code owner February 24, 2021 03:25
@stevesloka stevesloka requested review from danehans and skriss and removed request for a team February 24, 2021 03:25
@codecov
Copy link

codecov bot commented Feb 24, 2021

Codecov Report

Merging #3402 (8ea8d48) into main (4eea15d) will increase coverage by 0.01%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3402      +/-   ##
==========================================
+ Coverage   75.24%   75.25%   +0.01%     
==========================================
  Files          98       98              
  Lines        6531     6546      +15     
==========================================
+ Hits         4914     4926      +12     
- Misses       1509     1512       +3     
  Partials      108      108              
Impacted Files Coverage Δ
cmd/contour/serve.go 0.00% <0.00%> (ø)
internal/k8s/informers.go 0.00% <0.00%> (ø)
internal/dag/cache.go 91.15% <100.00%> (+0.24%) ⬆️
internal/k8s/log.go 69.56% <0.00%> (+6.52%) ⬆️

@stevesloka
Copy link
Member Author

I think informer caches would make this much simpler, but thought we could add that later. This would let us use internal label queries and not loop over the internal caches, but think it's a good spot for a tech debt update if someone wanted to pick it up.

// #2683

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.

one tiny nit, otherwise looks good.

cmd/contour/serve.go Outdated Show resolved Hide resolved
The RouteBindingSelector in Gateway API has an option to only process routes which exist
in a namespace based upon a selector defined in the Gateway.

Updates projectcontour#3401

Signed-off-by: Steve Sloka <slokas@vmware.com>
Signed-off-by: Steve Sloka <slokas@vmware.com>
@skriss skriss merged commit 9fc4431 into projectcontour:main Mar 1, 2021
@stevesloka stevesloka deleted the watchNamespaces branch March 2, 2021 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants