Skip to content
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

api: Adding runtime override to disable fatal-by-default #13607

Merged
merged 9 commits into from
Oct 21, 2020

Conversation

adisuissa
Copy link
Contributor

Commit Message: api: Adding runtime override to disable fatal-by-default
Additional Description:
Adding a runtime override flag envoy.features.enable_all_deprecated_features that when applied disables the fatal-by-default behavior of Envoy, and allows the use of all deprecated features.
Part of the work described in #8416.

Risk Level: Low.
Testing: Added unit tests.
Docs Changes: None.
Release Notes: None.
Platform Specific Features: None.

Signed-off-by: Adi Suissa-Peleg adip@google.com

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@adisuissa
Copy link
Contributor Author

/assign @htuch
No need to define a CLI parameter, as the runtime override can be added to the bootstrap config.
I can also add tests to: test/config_test/deprecated_configs_test.cc, but as v2 support will soon be disabled, I'm not sure if I should.
PTAL.

fatal_by_default_flag

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Looks good, couple of questions, otherwise I think this is good to go.

test/common/protobuf/utility_test.cc Show resolved Hide resolved
source/common/runtime/runtime_impl.cc Outdated Show resolved Hide resolved
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
…flag

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@adisuissa
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #13607 (comment) was created by @adisuissa.

see: more, trace.

CONTRIBUTING.md Show resolved Hide resolved
source/common/runtime/runtime_impl.cc Outdated Show resolved Hide resolved
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
…flag

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
htuch
htuch previously approved these changes Oct 20, 2020
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

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.

Thanks a ton. Quick docs drive by.

/wait

@@ -29,6 +29,7 @@ Removed Config or Runtime

New Features
------------
* config: added new runtime feature `envoy.features.enable_all_deprecated_features` that allows the use of all deprecated features.
Copy link
Member

Choose a reason for hiding this comment

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

Can you please also discuss this new feature here? https://www.envoyproxy.io/docs/envoy/latest/faq/configuration/deprecation

cc @alyssawilk if there are any other locations we should document.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ended up updating this: https://www.envoyproxy.io/docs/envoy/latest/configuration/operations/runtime#using-runtime-overrides-for-deprecated-features instead of the FAQ.
Please let me know if there's anything else that I've missed.

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@mattklein123
Copy link
Member

LGTM thanks. Can you check format?

/wait

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
…flag

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@mattklein123 mattklein123 merged commit ea49a2d into envoyproxy:master Oct 21, 2020
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.

None yet

3 participants