-
Notifications
You must be signed in to change notification settings - Fork 18
Envoy 1.29 #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Envoy 1.29 #312
Changes from all commits
707bb44
9bdd858
0dbab3f
ec872f0
be9722b
d81c403
6526e4b
2b0389d
ccbeb18
a7aedaf
d7e2a4b
4de8a2f
aa63816
941ed36
d36e0e1
6fbd6cf
2ba6011
c5922ea
2f8250d
7e8e577
efdb1d2
d49d192
6f70edc
33f54b6
bdb84e9
fa8200a
591b36c
d5871c4
053f304
813325c
8a44c49
63d0631
97346fd
46d8ac2
7d2d775
0cc9bb2
6bfe2a5
f4c8caf
f3ba632
d7b6a07
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 6.1.0 | ||
| 6.3.2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| changelog: | ||
| - type: DEPENDENCY_BUMP | ||
| dependencyOwner: solo-io | ||
| dependencyRepo: envoy-fork | ||
| dependencyTag: v1.29.2 | ||
| resolvesIssue: false | ||
| description: >- | ||
| Update Envoy to latest from forked 1.29.2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| if [ -n "$ENVOY_DOCKER_BUILD_DIR" ]; then | ||
| rm -rf "$ENVOY_DOCKER_BUILD_DIR/envoy/x64/bin/" | ||
| else | ||
| rm -rf "/build/envoy/x64/bin/" | ||
| if [ -z "$BUILD_DIR" ]; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You had mentioned something about this in a comment:
Can you say more about this? I think I see the block you're talking about: if [[ -z "${BUILD_DIR}" ]]; then
echo "BUILD_DIR not set - defaulting to ~/.cache/envoy-bazel" >&2
BUILD_DIR="${HOME}/.cache/envoy-bazel"
fiBut does it matter whether we build in the default location? |
||
| BUILD_DIR=/build | ||
| echo "using build dir: ${BUILD_DIR}" | ||
| else | ||
| echo "using pre-defined build dir: ${BUILD_DIR}" | ||
| fi | ||
| export BUILD_DIR | ||
|
|
||
| bazel fetch //source/exe:envoy-static | ||
|
|
||
|
|
@@ -32,6 +34,7 @@ fi | |
| export ENVOY_SRCDIR=$SOURCE_DIR | ||
|
|
||
| # google cloud build times out when using full throttle. | ||
| # additionally, we see builds killed due to OOM at high concurrency. | ||
| export NUM_CPUS=10 | ||
|
nfuden marked this conversation as resolved.
|
||
|
|
||
| # google cloud build doesn't like ipv6 | ||
|
|
@@ -42,9 +45,11 @@ export BAZEL_EXTRA_TEST_OPTIONS="--test_env=ENVOY_IP_TEST_VERSIONS=v4only --test | |
| export ENVOY_CONTRIB_BUILD_TARGET="//source/exe:envoy-static" | ||
| export ENVOY_CONTRIB_BUILD_DEBUG_INFORMATION="//source/exe:envoy-static.dwp" | ||
|
|
||
| export BAZEL_BUILD_EXTRA_OPTIONS | ||
| BAZEL_BUILD_EXTRA_OPTIONS+=" --remote_cache=${BAZEL_REMOTE_CACHE}" | ||
|
|
||
| export GCP_SERVICE_ACCOUNT_KEY_PATH=$(mktemp -t gcp_service_account.XXXXXX.json) | ||
| export GCP_SERVICE_ACCOUNT_KEY_PATH | ||
| GCP_SERVICE_ACCOUNT_KEY_PATH=$(mktemp -t gcp_service_account.XXXXXX.json) | ||
| echo "${GCP_SERVICE_ACCOUNT_KEY}" | base64 --decode > "${GCP_SERVICE_ACCOUNT_KEY_PATH}" | ||
| BAZEL_BUILD_EXTRA_OPTIONS+=" --google_credentials=${GCP_SERVICE_ACCOUNT_KEY_PATH}" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,21 +17,27 @@ AWSLambdaFilterConfigFactory::createFilterFactoryFromProtoTyped( | |
| &proto_config, | ||
| const std::string &stats_prefix, | ||
| Server::Configuration::FactoryContext &context) { | ||
| auto& server_context = context.serverFactoryContext(); | ||
|
|
||
|
|
||
| // ServerFactoryContext::clusterManager() is not available during server initialization | ||
| // therefore we need to pass absl::nullopt in lieu of the server_context to prevent | ||
| // the upstream code from attempting to access the method. https://github.com/envoyproxy/envoy/issues/26653 | ||
| auto chain = std::make_unique<Extensions::Common::Aws::DefaultCredentialsProviderChain>( | ||
| context.api(), Extensions::Common::Aws::Utility::fetchMetadata); | ||
| auto sts_factory = StsCredentialsProviderFactory::create(context.api(), | ||
| context.clusterManager()); | ||
| server_context.api(), absl::nullopt /* ServerFactoryContextOptRef context */, | ||
| // We pass an empty string if we don't have a region | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we default to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. after some reflection I think it could be very frustrating to debug issues related to default values in this section -- I think I prefer leaving this as-is |
||
| proto_config.has_service_account_credentials() ? proto_config.service_account_credentials().region() : "", | ||
| Extensions::Common::Aws::Utility::fetchMetadata); | ||
| auto sts_factory = StsCredentialsProviderFactory::create(server_context.api(), | ||
| server_context.clusterManager()); | ||
| auto config = std::make_shared<AWSLambdaConfigImpl>(std::move(chain), | ||
| std::move(sts_factory), | ||
| context.mainThreadDispatcher(), context.api(), context.threadLocal(), stats_prefix, | ||
| context.scope(), proto_config); | ||
| server_context.mainThreadDispatcher(), server_context.api(), server_context.threadLocal(), stats_prefix, | ||
| server_context.scope(), proto_config); | ||
| return | ||
| [&context, config] | ||
| [&server_context, config] | ||
| (Http::FilterChainFactoryCallbacks &callbacks) -> void { | ||
| callbacks.addStreamFilter(std::make_shared<AWSLambdaFilter>( | ||
| context.clusterManager(), context.api(), config)); | ||
| server_context.clusterManager(), server_context.api(), config)); | ||
| }; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.