Skip to content

Commit

Permalink
update envoy to master (istio#3122)
Browse files Browse the repository at this point in the history
* update envoy to master

Signed-off-by: Kuat Yessenov <[email protected]>

* stale file

Signed-off-by: Kuat Yessenov <[email protected]>
  • Loading branch information
kyessenov authored Dec 7, 2020
1 parent 0058550 commit f2d3a68
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ bind(
# 2. Update .bazelversion, envoy.bazelrc and .bazelrc if needed.
#
# Note: this is needed by release builder to resolve envoy dep sha to tag.
# Commit date: 2020-11-20
ENVOY_SHA = "31e225b628a316322a0bcbd237a143eade995d22"
# Commit date: 2020-12-07
ENVOY_SHA = "ebdcf7cc28dfeb555a957096231fdec343de4709"

ENVOY_SHA256 = "079516e413c07e2ca19374c9baa1cafe7c6ee1b160e74c6427b9fee0709fa953"
ENVOY_SHA256 = "939b31eeb2a97df0611dc576d5c6e0cc7e63518fe925a0a48b42e05fd2df614e"

ENVOY_ORG = "envoyproxy"

Expand Down
9 changes: 4 additions & 5 deletions extensions/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

load(
"@envoy//bazel/wasm:wasm.bzl",
"wasm_cc_binary",
"envoy_wasm_cc_binary",
)
load(
"@envoy//bazel:envoy_build_system.bzl",
Expand All @@ -26,7 +26,7 @@ load(

envoy_package()

wasm_cc_binary(
envoy_wasm_cc_binary(
name = "stats.wasm",
srcs = [
"//extensions/common:context.cc",
Expand All @@ -42,12 +42,11 @@ wasm_cc_binary(
"//extensions/common/wasm:json_util",
"//external:abseil_strings",
"//external:abseil_time",
"@proxy_wasm_cpp_sdk//:proxy_wasm_intrinsics",
"@proxy_wasm_cpp_sdk//contrib:contrib_lib",
],
)

wasm_cc_binary(
envoy_wasm_cc_binary(
name = "metadata_exchange.wasm",
srcs = [
"//extensions/common:context.cc",
Expand All @@ -72,7 +71,7 @@ wasm_cc_binary(
],
)

wasm_cc_binary(
envoy_wasm_cc_binary(
name = "attributegen.wasm",
srcs = [
"//extensions/attributegen:plugin.cc",
Expand Down
4 changes: 0 additions & 4 deletions extensions/metadata_exchange/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ load(
"envoy_cc_library",
"envoy_package",
)
load(
"@envoy//bazel/wasm:wasm.bzl",
"wasm_cc_binary",
)

envoy_package()

Expand Down
3 changes: 2 additions & 1 deletion src/envoy/http/alpn/alpn_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ Http::FilterHeadersStatus AlpnFilter::decodeHeaders(Http::RequestHeaderMap &,
}

Upstream::ThreadLocalCluster *cluster =
config_->clusterManager().get(route_entry->clusterName());
config_->clusterManager().getThreadLocalCluster(
route_entry->clusterName());
if (!cluster || !cluster->info()) {
ENVOY_LOG(debug, "cannot find cluster {}", route_entry->clusterName());
return Http::FilterHeadersStatus::Continue;
Expand Down
9 changes: 6 additions & 3 deletions src/envoy/http/alpn/alpn_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ TEST_F(AlpnFilterTest, OverrideAlpnUseDownstreamProtocol) {
{Http::Protocol::Http2, {"qux"}}};
auto filter = makeAlpnOverrideFilter(alpn);

ON_CALL(cluster_manager_, get(_)).WillByDefault(Return(fake_cluster_.get()));
ON_CALL(cluster_manager_, getThreadLocalCluster(_))
.WillByDefault(Return(fake_cluster_.get()));
ON_CALL(*fake_cluster_, info()).WillByDefault(Return(cluster_info_));
ON_CALL(*cluster_info_, upstreamHttpProtocol(_))
.WillByDefault([](absl::optional<Http::Protocol> protocol) {
Expand Down Expand Up @@ -121,7 +122,8 @@ TEST_F(AlpnFilterTest, OverrideAlpn) {
{Http::Protocol::Http2, {"qux"}}};
auto filter = makeAlpnOverrideFilter(alpn);

ON_CALL(cluster_manager_, get(_)).WillByDefault(Return(fake_cluster_.get()));
ON_CALL(cluster_manager_, getThreadLocalCluster(_))
.WillByDefault(Return(fake_cluster_.get()));
ON_CALL(*fake_cluster_, info()).WillByDefault(Return(cluster_info_));
ON_CALL(*cluster_info_, upstreamHttpProtocol(_))
.WillByDefault(
Expand Down Expand Up @@ -155,7 +157,8 @@ TEST_F(AlpnFilterTest, EmptyOverrideAlpn) {
{Http::Protocol::Http11, {"baz"}}};
auto filter = makeAlpnOverrideFilter(alpn);

ON_CALL(cluster_manager_, get(_)).WillByDefault(Return(fake_cluster_.get()));
ON_CALL(cluster_manager_, getThreadLocalCluster(_))
.WillByDefault(Return(fake_cluster_.get()));
ON_CALL(*fake_cluster_, info()).WillByDefault(Return(cluster_info_));
ON_CALL(*cluster_info_, upstreamHttpProtocol(_))
.WillByDefault(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@ class IstioHttpIntegrationTestWithEnvoyJwtFilter
public:
void createUpstreams() override {
HttpProtocolIntegrationTest::createUpstreams();
fake_upstreams_.emplace_back(new FakeUpstream(
0, FakeHttpConnection::Type::HTTP2, version_, timeSystem()));
FakeUpstreamConfig config(timeSystem());
config.upstream_protocol_ = FakeHttpConnection::Type::HTTP2;
fake_upstreams_.emplace_back(new FakeUpstream(0, version_, config));
zipkin_upstream_ = fake_upstreams_.back().get();
}

Expand Down

0 comments on commit f2d3a68

Please sign in to comment.