-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
- Loading branch information
1 parent
b0c0307
commit 7cdf5e5
Showing
27 changed files
with
138 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#include "source/common/upstream/prod_cluster_info_factory.h" | ||
|
||
#include "envoy/stats/scope.h" | ||
|
||
#include "source/common/protobuf/message_validator_impl.h" | ||
#include "source/common/protobuf/protobuf.h" | ||
#include "source/common/protobuf/utility.h" | ||
#include "source/common/upstream/upstream_impl.h" | ||
|
||
namespace Envoy { | ||
namespace Upstream { | ||
|
||
ClusterInfoConstSharedPtr | ||
ProdClusterInfoFactory::createClusterInfo(const CreateClusterInfoParams& params) { | ||
Envoy::Stats::ScopeSharedPtr scope = | ||
params.stats_.createScope(fmt::format("cluster.{}.", params.cluster_.name())); | ||
|
||
Envoy::Server::Configuration::TransportSocketFactoryContextImpl factory_context( | ||
params.server_context_, params.ssl_context_manager_, *scope, | ||
params.server_context_.clusterManager(), params.server_context_.messageValidationVisitor()); | ||
|
||
// TODO(JimmyCYJ): Support SDS for HDS cluster. | ||
Network::UpstreamTransportSocketFactoryPtr socket_factory = THROW_OR_RETURN_VALUE( | ||
Upstream::createTransportSocketFactory(params.cluster_, factory_context), | ||
Network::UpstreamTransportSocketFactoryPtr); | ||
auto socket_matcher = THROW_OR_RETURN_VALUE( | ||
TransportSocketMatcherImpl::create(params.cluster_.transport_socket_matches(), | ||
factory_context, socket_factory, *scope), | ||
std::unique_ptr<TransportSocketMatcherImpl>); | ||
|
||
return THROW_OR_RETURN_VALUE( | ||
ClusterInfoImpl::create(params.server_context_.initManager(), params.server_context_, | ||
params.cluster_, params.bind_config_, | ||
params.server_context_.runtime(), std::move(socket_matcher), | ||
std::move(scope), params.added_via_api_, factory_context), | ||
std::unique_ptr<ClusterInfoImpl>); | ||
} | ||
|
||
} // namespace Upstream | ||
} // namespace Envoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include "envoy/api/api.h" | ||
#include "envoy/upstream/cluster_manager.h" | ||
#include "envoy/upstream/upstream.h" | ||
|
||
namespace Envoy { | ||
namespace Upstream { | ||
|
||
class ProdClusterInfoFactory : public ClusterInfoFactory, Logger::Loggable<Logger::Id::upstream> { | ||
public: | ||
ClusterInfoConstSharedPtr createClusterInfo(const CreateClusterInfoParams& params) override; | ||
}; | ||
|
||
} // namespace Upstream | ||
} // namespace Envoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/extensions/common/aws/aws_metadata_fetcher_integration_test.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.