Skip to content

Deprecate Envoy API v2 primitives in configuration for our Envoy filters.#588

Merged
mum4k merged 6 commits intoenvoyproxy:masterfrom
mum4k:filter-api-v2-to-v3
Dec 8, 2020
Merged

Deprecate Envoy API v2 primitives in configuration for our Envoy filters.#588
mum4k merged 6 commits intoenvoyproxy:masterfrom
mum4k:filter-api-v2-to-v3

Conversation

@mum4k
Copy link
Copy Markdown
Collaborator

@mum4k mum4k commented Dec 4, 2020

Adds a new field v3_response_headers alongside the old v2 response_headers in api/server/response_options.proto and marks the old field as deprecated. The old field retains its functionality for backward compatibility.

Since these are repeated fields, we cannot use a oneof. Instead validation is added to ensure the filters report an error on configuration that has both the v2 and the v3 fields set. Envoy::EnvoyException is thrown on validation errors to comply with the Envoy::Server::Configuration::NamedHttpFilterConfigFactory interface.

Also:

  • sorting imports in response_options.proto alphabetically.
  • adding missing anonymous namespace in http_dynamic_delay_filter_integration_test.cc.

Works on #580.

Signed-off-by: Jakub Sobon mumak@google.com

mum4k added 6 commits December 3, 2020 22:45
Signed-off-by: Jakub Sobon <mumak@google.com>
Signed-off-by: Jakub Sobon <mumak@google.com>
Signed-off-by: Jakub Sobon <mumak@google.com>
Signed-off-by: Jakub Sobon <mumak@google.com>
Signed-off-by: Jakub Sobon <mumak@google.com>
@mum4k mum4k requested review from jiajunye and oschaaf December 4, 2020 07:56
@mum4k
Copy link
Copy Markdown
Collaborator Author

mum4k commented Dec 4, 2020

@jiajunye please review and assign back to me once done.

@mum4k mum4k added the waiting-for-review A PR waiting for a review. label Dec 4, 2020
Copy link
Copy Markdown
Member

@oschaaf oschaaf left a comment

Choose a reason for hiding this comment

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

Similar thought as in #589 that I'm bring up for consideration, other then that looks good.

Copy link
Copy Markdown
Contributor

@jiajunye jiajunye left a comment

Choose a reason for hiding this comment

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

LGTM

@mum4k mum4k merged commit facd66b into envoyproxy:master Dec 8, 2020
@mum4k mum4k deleted the filter-api-v2-to-v3 branch December 8, 2020 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-review A PR waiting for a review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants