-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
deprecate old-style v1 JSON filter config #7129
Conversation
Now that TCP proxy has parity, we can completely remove v1 style config loading. Signed-off-by: Matt Klein <mklein@lyft.com>
@alyssawilk @derekargueta PTAL |
No code changes? Might be useful to users to hook this into the deprecated feature counter or start-up logging (although hopefully it's unlikely that anyone is still using |
Also is this different than the v1 deprecation in the 1.8 deprecation notes (first bullet)? |
@PiotrSikora for parity comments, since this relates to #5355 If we're going to do this we should flag the actual API fields as well so the scripts pick it up, no? |
Unfortunately there are no API fields here. This is related to this code:
and
I agree with @derekargueta that we need to engage the stat/warn logic here, but it will need special casing. I was being lazy. Let me look into how to handle this. @alyssawilk any quick thoughts on how to one off engage the logic here since we aren't dealing with proto fields? |
It doesn't actually relate to bind to port. See ^. |
Yeah, sorry, I was misreading the bit about the tcp proxy session and network filter config to think we were removing deprecated_v1 fields altogether |
@alyssawilk I still want to address @derekargueta comment about engaging the stat/warn/fail by default behavior. Do you think it would be possible to actually guard these if checks with some type of fake runtime field check? I can look into it later today. |
Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
@derekargueta @alyssawilk updated PTAL |
Signed-off-by: Matt Klein <mklein@lyft.com>
/retest |
🔨 rebuilding |
Signed-off-by: Matt Klein <mklein@lyft.com>
@alyssawilk updated |
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.
It makes me wonder if deprecatedFeatureEnabled should take an error argument, but I guess that'd bring us the same problem we have with configs where some call sites might otherwise get too spammy.
Also I guess I should go fix that TODO on deprecation tooling for features now :-)
Now that TCP proxy has parity, we can completely remove v1
style config loading.
Risk Level: Low
Testing: New UT
Docs Changes: Added.
Release Notes: Added.