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

[ext_proc] Knob to forcibly clear route cache #33568

Closed
wants to merge 2 commits into from

Conversation

rshriram
Copy link
Member

@rshriram rshriram commented Apr 16, 2024

Commit Message: [ext_proc] Knob to forcibly clear route cache
Additional Description: Add a knob to forcibly clear the route cache in Envoy irrespective of the value of the clear_route_cache bit in the ProcessingResponse.
Risk Level: Low
Testing: API only

Signed-off-by: Shriram Rajagopalan shriramr@google.com

Add a knob to forcibly clear the route cache in Envoy irrespective of the value of the clear_route_cache bit in the ProcessingResponse.

Signed-off-by: Shriram Rajagopalan <rshriram@users.noreply.github.com>
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @htuch
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #33568 was opened by rshriram.

see: more, trace.

@rshriram
Copy link
Member Author

cc @yanjunxiang-google @tyxia

@yanjunxiang-google
Copy link
Contributor

I like the idea.
Could you please fix the DCO and get the CI pass?

Copy link
Member

@tyxia tyxia left a comment

Choose a reason for hiding this comment

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

Thanks for working on it! It is a good idea to introduce RouteCacheAction enum to clean up routeCache action.

LGTM modulo backwards compatibility issue.

// Prevents clearing the route-cache when the
// :ref:`clear_route_cache <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.clear_route_cache>`
// field is set in an external processor response.
bool disable_clear_route_cache = 11;
Copy link
Member

Choose a reason for hiding this comment

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

We can not promote existing field to be an oneof field as it is a breaking API change. See API guide.

You can only use udpa.annotations.field_migrate).oneof_promotion in API

@rshriram rshriram closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants