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

fix(*) switch Gateway to a selectors field #2749

Merged
merged 1 commit into from
Sep 9, 2021
Merged

fix(*) switch Gateway to a selectors field #2749

merged 1 commit into from
Sep 9, 2021

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Sep 8, 2021

Summary

A Gateway matches a dataplane directly; it doesn't match a traffic flow.
This means that a selectors field is more direct and consistent with
the Kuma API than a sources field.

Full changelog

N/A

Issues resolved

N/A

Documentation

N/A

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Add backport-to-stable label if the code is backwards compatible. Otherwise, list breaking changes.

@jpeach jpeach requested a review from a team as a code owner September 8, 2021 02:09
@jpeach jpeach changed the title fix(8) switch Gateway to a selectors field fix(*) switch Gateway to a selectors field Sep 8, 2021
@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2021

Codecov Report

Merging #2749 (4ff26a3) into master (6f2b621) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2749      +/-   ##
==========================================
+ Coverage   51.93%   51.97%   +0.03%     
==========================================
  Files         877      877              
  Lines       51141    51139       -2     
==========================================
+ Hits        26561    26579      +18     
+ Misses      22472    22445      -27     
- Partials     2108     2115       +7     
Impacted Files Coverage Δ
api/mesh/v1alpha1/gateway.pb.go 35.00% <100.00%> (ø)
pkg/core/resources/apis/mesh/gateway_validator.go 95.00% <100.00%> (ø)
...kg/core/resources/apis/mesh/generated_resources.go 78.35% <100.00%> (ø)
pkg/plugins/runtime/gateway/match/gateway.go 70.00% <100.00%> (-5.00%) ⬇️
pkg/xds/generator/direct_access_proxy_generator.go 82.75% <0.00%> (-1.15%) ⬇️
api/observability/v1/mads.pb.go 35.56% <0.00%> (+1.03%) ⬆️
pkg/insights/resyncer.go 65.67% <0.00%> (+1.49%) ⬆️
pkg/mads/v1/client/client.go 43.75% <0.00%> (+2.50%) ⬆️
pkg/core/resources/manager/cache.go 84.41% <0.00%> (+2.59%) ⬆️
pkg/events/eventbus.go 92.59% <0.00%> (+7.40%) ⬆️
... and 1 more

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 6f2b621...4ff26a3. Read the comment docs.

A Gateway matches a dataplane directly; it doesn't match a traffic flow.
This means that a `selectors` field is more direct and consistent with
the Kuma API than a `sources` field.

Signed-off-by: James Peach <james.peach@konghq.com>
@jpeach jpeach merged commit 858034a into kumahq:master Sep 9, 2021
@jpeach jpeach deleted the fix/gateway-selectors branch September 9, 2021 00:18
mergify bot pushed a commit that referenced this pull request Sep 9, 2021
A Gateway matches a dataplane directly; it doesn't match a traffic flow.
This means that a `selectors` field is more direct and consistent with
the Kuma API than a `sources` field.

Signed-off-by: James Peach <james.peach@konghq.com>
(cherry picked from commit 858034a)
jpeach added a commit that referenced this pull request Sep 9, 2021
A Gateway matches a dataplane directly; it doesn't match a traffic flow.
This means that a `selectors` field is more direct and consistent with
the Kuma API than a `sources` field.

Signed-off-by: James Peach <james.peach@konghq.com>
(cherry picked from commit 858034a)

Co-authored-by: James Peach <james.peach@konghq.com>
nikita15p pushed a commit to nikita15p/kuma that referenced this pull request Sep 28, 2021
A Gateway matches a dataplane directly; it doesn't match a traffic flow.
This means that a `selectors` field is more direct and consistent with
the Kuma API than a `sources` field.

Signed-off-by: James Peach <james.peach@konghq.com>
nikita15p pushed a commit to nikita15p/kuma that referenced this pull request Sep 28, 2021
A Gateway matches a dataplane directly; it doesn't match a traffic flow.
This means that a `selectors` field is more direct and consistent with
the Kuma API than a `sources` field.

Signed-off-by: James Peach <james.peach@konghq.com>
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.

None yet

3 participants