Skip to content

config: v2 non-pubsub transport API fatal-by-default.#14389

Merged
htuch merged 4 commits intoenvoyproxy:masterfrom
htuch:v2-non-pub-sub-fatal-by-default
Dec 15, 2020
Merged

config: v2 non-pubsub transport API fatal-by-default.#14389
htuch merged 4 commits intoenvoyproxy:masterfrom
htuch:v2-non-pub-sub-fatal-by-default

Conversation

@htuch
Copy link
Member

@htuch htuch commented Dec 14, 2020

This is a followup to #14223, covering remaining uses of the
transport_api_version field.

Risk level: High (this will break anyone who is still using v2 and has
not enabled CLI or runtime override)
Testing: Various tests updated, some exemplar tests added to
server_test.
Release Notes: Same as #13950.

Signed-off-by: Harvey Tuch htuch@google.com

This is a followup to envoyproxy#14223, covering remaining uses of the
transport_api_version field.

Risk level: High (this will break anyone who is still using v2 and has
   not enabled CLI or runtime override)
Testing: Various tests updated, some exemplar tests added to
  server_test.
Release Notes: Same as envoyproxy#13950.

Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
static envoy::config::core::v3::ApiVersion
getAndCheckTransportVersion(const Proto& api_config_source) {
const auto transport_api_version = api_config_source.transport_api_version();
if (transport_api_version == envoy::config::core::v3::ApiVersion::AUTO ||
Copy link
Member

@dio dio Dec 14, 2020

Choose a reason for hiding this comment

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

Not sure if people will argue that "AUTO" should automatically use the currently "stable" version. But I agree that being explicit is great.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, we agreed to deprecate AUTO in #14233.

Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Nice!

@htuch htuch merged commit 0dd74a9 into envoyproxy:master Dec 15, 2020
@htuch htuch deleted the v2-non-pub-sub-fatal-by-default branch December 15, 2020 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants