Skip to content

api: allow multiple type URLs for xDS#10788

Closed
Shikugawa wants to merge 6 commits intoenvoyproxy:masterfrom
Shikugawa:remove_hardcoded_type_url_sec2
Closed

api: allow multiple type URLs for xDS#10788
Shikugawa wants to merge 6 commits intoenvoyproxy:masterfrom
Shikugawa:remove_hardcoded_type_url_sec2

Conversation

@Shikugawa
Copy link
Member

@Shikugawa Shikugawa commented Apr 15, 2020

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Description: allow multiple versions of type URLs. For example, we can set type.googleapis.com/envoy.api.v2.ScopedRouteConfiguration and "type.googleapis.com/envoy.config.route.v3.ScopedRouteConfiguration" simultaneously.
Risk Level: Mid
Testing: Unit / Integration
Docs Changes: N/A
Release Notes: N/A
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: shikugawa <rei@tetrate.io>
Signed-off-by: shikugawa <rei@tetrate.io>
Signed-off-by: shikugawa <rei@tetrate.io>
Signed-off-by: shikugawa <rei@tetrate.io>
Signed-off-by: shikugawa <rei@tetrate.io>
@Shikugawa Shikugawa force-pushed the remove_hardcoded_type_url_sec2 branch from 89306d4 to eab6fe3 Compare April 17, 2020 11:18
Signed-off-by: shikugawa <rei@tetrate.io>
@Shikugawa Shikugawa marked this pull request as ready for review April 17, 2020 11:26
@Shikugawa Shikugawa requested a review from snowp as a code owner April 17, 2020 11:26
@Shikugawa
Copy link
Member Author

/review htuch

@repokitteh-read-only repokitteh-read-only bot requested a review from htuch April 17, 2020 11:27
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Thanks, looks good but would be cleanest if two PRs..

Cleanup eds_resume(
[this] { cm_.adsMux()->resume(Config::TypeUrl::get().ClusterLoadAssignment); });
for (auto&& type_url : target_type_urls) {
if (!cm_.adsMux()->paused(type_url)) {
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, I think we're still mixing two unrelated PRs; switching to non-hardcoded type URLs and supporting multiple type URLs.

if (!started_secondary_initialize_) {
ENVOY_LOG(info, "cm init: initializing secondary clusters");
const auto target_type_urls =
Config::getAllVersionTypeUrls<envoy::config::endpoint::v3::ClusterLoadAssignment>();
Copy link
Member

Choose a reason for hiding this comment

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

This seems a regression in terms of reducing the amount of version hardcoding; before we could just do Config::TypeUrl::get().ClusterLoadAssignment(), now we need to mention v3..

* requests may later be resumed with resume().
* @param type_urls all of type URLs corresponding to xDS APIs.
*/
void pause(const std::vector<std::string>& type_urls) {
Copy link
Member

Choose a reason for hiding this comment

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

Do we need some unit tests for these vectored pause/resume methods?

@htuch htuch added the waiting label Apr 20, 2020
@Shikugawa Shikugawa changed the title api: remove hard-coded type urls part.2 api: allow multiple type URLs for xDS Apr 20, 2020
@Shikugawa
Copy link
Member Author

@htuch Thanks. I separated this PR into this and #10848. When finished #10848, I will continue to work this to allow multiple type URLs for the same resources.

@stale
Copy link

stale bot commented Apr 28, 2020

This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@stale stale bot added the stale stalebot believes this issue/PR has not been touched recently label Apr 28, 2020
@Shikugawa
Copy link
Member Author

/nostale

@stale stale bot removed the stale stalebot believes this issue/PR has not been touched recently label Apr 28, 2020
@stale
Copy link

stale bot commented May 6, 2020

This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@stale stale bot added the stale stalebot believes this issue/PR has not been touched recently label May 6, 2020
@stale
Copy link

stale bot commented May 13, 2020

This pull request has been automatically closed because it has not had activity in the last 14 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@stale stale bot closed this May 13, 2020
@htuch htuch reopened this May 13, 2020
@stale stale bot removed the stale stalebot believes this issue/PR has not been touched recently label May 13, 2020
@stale
Copy link

stale bot commented May 20, 2020

This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@stale stale bot added the stale stalebot believes this issue/PR has not been touched recently label May 20, 2020
@stale
Copy link

stale bot commented May 30, 2020

This pull request has been automatically closed because it has not had activity in the last 14 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@stale stale bot closed this May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale stalebot believes this issue/PR has not been touched recently waiting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants