forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API field in Router for Upstream Filters. (envoyproxy#23367)
Upstream filters specified in the router will apply if there are no filters specified in the cluster. Risk Level: Low. Testing: Unit and Integration testing. Signed-off-by: Paul Gallagher <pgal@google.com>
- Loading branch information
1 parent
9efcad4
commit 9bb570f
Showing
37 changed files
with
769 additions
and
165 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
34 changes: 34 additions & 0 deletions
34
source/common/upstream/upstream_http_factory_context_impl.h
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,34 @@ | ||
#pragma once | ||
|
||
#include "envoy/init/manager.h" | ||
#include "envoy/server/factory_context.h" | ||
#include "envoy/stats/scope.h" | ||
|
||
namespace Envoy { | ||
namespace Upstream { | ||
|
||
/* | ||
* Upstream Factory Context used by both Clusters and Routers to configure | ||
* upstream filters. | ||
*/ | ||
class UpstreamHttpFactoryContextImpl : public Server::Configuration::UpstreamHttpFactoryContext { | ||
public: | ||
UpstreamHttpFactoryContextImpl(Server::Configuration::ServerFactoryContext& context, | ||
Init::Manager& init_manager, Stats::Scope& scope) | ||
: server_context_(context), init_manager_(init_manager), scope_(scope) {} | ||
|
||
Server::Configuration::ServerFactoryContext& getServerFactoryContext() const override { | ||
return server_context_; | ||
} | ||
|
||
Init::Manager& initManager() override { return init_manager_; } | ||
Stats::Scope& scope() override { return scope_; } | ||
|
||
private: | ||
Server::Configuration::ServerFactoryContext& server_context_; | ||
Init::Manager& init_manager_; | ||
Stats::Scope& scope_; | ||
}; | ||
|
||
} // 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
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.