Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

envoy: update image and go-control-plane version #4556

Closed
wants to merge 3 commits into from

Conversation

shashankram
Copy link
Member

@shashankram shashankram commented Feb 23, 2022

Description:

  • Updates Envoy image to v1.21.1, which is the latest
    release with security patches applied

  • Updates go-control-plane module to v0.10.1. This is
    required to use latest changes to the XDS API, e.g.
    to set HTTP MaxRequestsPerConnection as a part of the
    HttpProtocolOptions.
    Resolves snapshot cache (experimental) compatibility
    with new SDK.

  • Removes Envoy cmd line argument for bootstrap version
    which is now the only supported version in Envoy. The
    cmd line flag has been removed in Envoy.

  • Accounts for the change in envoy where custom metrics from
    WASM extensions are no longer prefixed with envoy_. The metrics as
    they exist in Prometheus are unchanged.

  • Update drain interval to 30s from 600s and set drain strategy to
    immediate so that connections are drained sooner when the
    listener is removed.

Testing done:
CI

Affected area:

Functional Area
Control Plane [X]
Other [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

Copy link
Contributor

@nojnhuh nojnhuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sidecarImage: envoyproxy/envoy-alpine@sha256:6502a637c6c5fba4d03d0672d878d12da4bcc7a0d0fb3f1d506982dde0039abd
# -- Envoy sidecar image for Windows workloads (v1.19.1)
sidecarWindowsImage: envoyproxy/envoy-windows@sha256:c904fda95891ebbccb9b1f24c1a9482c8d01cbca215dd081fc8c8db36db85f85
# -- Envoy sidecar image for Linux workloads (v1.21.1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might as well remove the version from these comments if it's included in the value itself.

Copy link
Member Author

@shashankram shashankram Feb 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please also update the docs: https://github.com/openservicemesh/osm-docs/blob/97baa0d481928a5607c2dcb3dfb453e93cbf9acd/config.toml#L87

Yes, I have a change that I will push to osm-docs once this merges.

@codecov-commenter
Copy link

codecov-commenter commented Feb 23, 2022

Codecov Report

Merging #4556 (0d688a5) into main (f83b8a7) will increase coverage by 0.05%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4556      +/-   ##
==========================================
+ Coverage   69.20%   69.26%   +0.05%     
==========================================
  Files         216      216              
  Lines       14660    14661       +1     
==========================================
+ Hits        10146    10155       +9     
+ Misses       4463     4455       -8     
  Partials       51       51              
Flag Coverage Δ
unittests 69.26% <40.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/envoy/ads/cache_callbacks.go 0.00% <0.00%> (ø)
pkg/envoy/ads/cache_stream.go 32.30% <0.00%> (+1.42%) ⬆️
pkg/envoy/ads/response.go 70.73% <50.00%> (ø)
pkg/injector/envoy_container.go 100.00% <100.00%> (ø)
pkg/certificate/rotor/rotor.go 84.78% <0.00%> (-2.18%) ⬇️
pkg/crdconversion/crdconversion.go 74.81% <0.00%> (+4.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f83b8a7...0d688a5. Read the comment docs.

@shashankram shashankram added wip Work-in-Progress do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Feb 23, 2022
shashankram and others added 3 commits February 28, 2022 09:36
- Updates Envoy image to v1.21.1, which is the latest
  release with security patches applied

- Updates go-control-plane module to v0.10.1. This is
  required to use latest changes to the XDS API, e.g.
  to set HTTP MaxRequestsPerConnection as a part of the
  HttpProtocolOptions.
  Resolves snapshot cache (experimental) compatibility
  with new SDK.

- Removes Envoy cmd line argument for bootstrap version
  which is now the only supported version in Envoy. The
  cmd line flag has been removed in Envoy.

Signed-off-by: Shashank Ram <[email protected]>
This change accounts for the change in envoy where custom metrics from
WASM extensions are no longer prefixed with `envoy_`. The metrics as
they exist in Prometheus are unchanged.

Signed-off-by: Jon Huhn <[email protected]>
Signed-off-by: Shashank Ram <[email protected]>
@shashankram shashankram force-pushed the envoy-mod branch 2 times, most recently from d6c48c0 to 0d688a5 Compare February 28, 2022 18:17
@shashankram shashankram closed this Mar 8, 2022
@shashankram shashankram deleted the envoy-mod branch March 8, 2022 18:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. wip Work-in-Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants