Skip to content

hardcoded v2 type urls in xds requests #10209

@bennettdong

Description

@bennettdong

Title: hardcoded v2 type urls in xds requests

Description:
In order to migrate to v3 API, loadTypeUrl functions are used to determine type url in discovery requests. However, I found that some files are still using v2 type url constants in this file. This means that even envoy is configured to use v3, it will still send requests for v2 resources.

Correct me if there is any magic actually doing the conversion somewhere.

[optional Relevant Links:]

Envoy::Config::TypeUrl::get().RouteConfiguration);

Envoy::Config::TypeUrl::get().RouteConfiguration);

cm_.adsMux()->pause(Config::TypeUrl::get().ClusterLoadAssignment);
maybe_eds_resume = std::make_unique<Cleanup>(
[this] { cm_.adsMux()->resume(Config::TypeUrl::get().ClusterLoadAssignment); });

cm_.adsMux()->paused(Config::TypeUrl::get().ClusterLoadAssignment)) {
initializeSecondaryClusters();
} else {
cm_.adsMux()->pause(Config::TypeUrl::get().ClusterLoadAssignment);
Cleanup eds_resume(
[this] { cm_.adsMux()->resume(Config::TypeUrl::get().ClusterLoadAssignment); });

ads_mux_->pause(Config::TypeUrl::get().Cluster);
} else if (previous_warming > 0 && warming_clusters_.empty()) {
ads_mux_->resume(Config::TypeUrl::get().Cluster);

cm_.adsMux()->pause(Config::TypeUrl::get().RouteConfiguration);
maybe_eds_resume = std::make_unique<Cleanup>(
[this] { cm_.adsMux()->resume(Config::TypeUrl::get().RouteConfiguration); });

cm.adsMux()->pause(Config::TypeUrl::get().RouteConfiguration);
}
ENVOY_LOG(info, "all clusters initialized. initializing init manager");
init_manager.initialize(init_watcher_);
// Now that we're execute all the init callbacks we can resume RDS
// as we've subscribed to all the statically defined RDS resources.
if (cm.adsMux()) {
cm.adsMux()->resume(Config::TypeUrl::get().RouteConfiguration);

Metadata

Metadata

Assignees

Labels

api/v3Major version release @ end of Q3 2019bughelp wantedNeeds help!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions