-
Notifications
You must be signed in to change notification settings - Fork 5.3k
release: flipping deprecated features to be fatal-by-default #7549
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
Changes from all commits
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 | ||
|---|---|---|---|---|
|
|
@@ -47,6 +47,12 @@ constexpr const char* disallowed_features[] = { | |||
| // Acts as both a test entry for deprecated.proto and a marker for the Envoy | ||||
| // deprecation scripts. | ||||
| "envoy.deprecated_features.deprecated.proto:is_deprecated_fatal", | ||||
| "envoy.deprecated_features.bootstrap.proto:runtime", | ||||
|
Member
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. nit: I would probably alpha sort all of these if possible.
Member
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. I will alpha order when I do my follow up PR. |
||||
| "envoy.deprecated_features.redis_proxy.proto:catch_all_cluster", | ||||
| "envoy.deprecated_features.lds.proto:use_original_dst", | ||||
| "envoy.deprecated_features.server_info.proto:max_stats", | ||||
|
Member
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. I think this and below are on output protos so they won't have any effect. Not sure how we could know this. Thoughts?
Contributor
Author
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. Good point. No ideas here - I'd be inclined to leave them in to avoid script churn. |
||||
| "envoy.deprecated_features.redis_proxy.proto:cluster", | ||||
| "envoy.deprecated_features.server_info.proto:max_obj_name_len", | ||||
|
Member
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. I think we need envoy/source/common/config/utility.cc Line 302 in b3f848d
Contributor
Author
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. Oh man, I totally missed this in review but this should have been envoy.reloadable_features.v1_filter_json_config which is why it wasn't caught. I tried flipping it, and it broke the bootstrap test pretty hard. Beyond needing the same runtime layers update, there's some issue with proto constraint which I've tracked down to a really confusing red herring where when we to do proto to json conversion we end up failing and so having a completely empty proto, so failing the first validator which checks for non-empty bytes Given this didn't land as a config change what do we think of renaming, and flipping in its own PR, ideally after some digging into the hot restart test?
Member
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. Sure whatever you think is best. I mainly want to get this deprecation moving since this will allow us to delete a ton of code (all of v1).
Contributor
Author
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. Would you have cycles to look into what's going on with the filter config? I was going to ask we assign whoever introduced the variable to sorting out the test and looks like it was you :-P
Member
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. Yes, sorry, what do you want me to do exactly? If you give me a diff that is broken I can debug it. :)
Contributor
Author
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. I think we land this as-is, and you flip the v1 json separately, since it currently doesn't pass tests?
Member
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. OK got it, but you want me to change the name also? |
||||
| "envoy.deprecated_features.config_source.proto:UNSUPPORTED_REST_LEGACY", | ||||
| "envoy.deprecated_features.ext_authz.proto:use_alpha", | ||||
| "envoy.deprecated_features.route.proto:enabled", | ||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The equivalent of what we had before would be:
Should we keep it equivalent?