Skip to content

api: fix v3 delta gRPC ADS support.#10678

Merged
htuch merged 2 commits intoenvoyproxy:masterfrom
htuch:v3-delta-ads
Apr 7, 2020
Merged

api: fix v3 delta gRPC ADS support.#10678
htuch merged 2 commits intoenvoyproxy:masterfrom
htuch:v3-delta-ads

Conversation

@htuch
Copy link
Member

@htuch htuch commented Apr 7, 2020

Fixes #10651.

Risk level: Low
Testing: Extended api_version_integration_test to cover this regression.

Signed-off-by: Harvey Tuch htuch@google.com

Fixes envoyproxy#10651.

Risk level: Low
Testing: Extended api_version_integration_test to cover this regression.

Signed-off-by: Harvey Tuch <htuch@google.com>
@htuch htuch added this to the 1.14.0 milestone Apr 7, 2020
@htuch
Copy link
Member Author

htuch commented Apr 7, 2020

@mattklein123 this is a small fix that I think can intercept 1.14.0.

Comment on lines +271 to +275
dyn_resources.ads_config().transport_api_version() ==
envoy::config::core::v3::ApiVersion::V3
? "envoy.service.discovery.v3.AggregatedDiscoveryService.DeltaAggregatedResources"
: "envoy.service.discovery.v2.AggregatedDiscoveryService."
"DeltaAggregatedResources"),
Copy link
Member

Choose a reason for hiding this comment

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

Would it be better to put this logic in type_to_endpoint.cc so that we have all of the version selection logic in one place? WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

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

Possibly, but ADS is an exception; there is no mapping from type to endpoint... we would probably want to rename that module.

Copy link
Member

Choose a reason for hiding this comment

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

Up to you. I think it would be better to co-locate this type of selection logic. Maybe at least put in a TODO if you don't want to do it now?

Copy link
Member Author

Choose a reason for hiding this comment

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

TODOs added, I think this depends on where we go with #10650.

Signed-off-by: Harvey Tuch <htuch@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Nice, thanks.

Copy link
Contributor

@euroelessar euroelessar left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@asraa
Copy link
Contributor

asraa commented Apr 7, 2020

/azp run envoy-presubmit

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@htuch htuch merged commit 901ac87 into envoyproxy:master Apr 7, 2020
@htuch htuch deleted the v3-delta-ads branch April 7, 2020 19:43
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.

v3: Aggregated delta gRPC is v2 only

4 participants