Skip to content

Conversation

johnlanni
Copy link

This enables fine grained control over the lifecycle of golang filter config in sync with C++.
Some use cases store states and resources in the config object that needs to be cleaned when config is deleted or renewed. The current design uses a Config interface, to minimise changes and avoid breaking existing code.
I have an alternative design that adds a Destroy function in the StreamFilterConfigParser interface instead of introducing an interface. Let me know what you think, given the current go api is not considered stable and breaking change should be acceptable.

Fixes envoyproxy#38557

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

…proxy#38597)

This enables fine grained control over the lifecycle of golang filter
config in sync with C++.
Some use cases store states and resources in the config object that
needs to be cleaned when config is deleted or renewed.
The current design uses a Config interface, to minimise changes and
avoid breaking existing code.
I have an alternative design that adds a Destroy function in the
StreamFilterConfigParser interface instead of introducing an interface.
Let me know what you think, given the current go api is not considered
stable and breaking change should be acceptable.

Fixes envoyproxy#38557

Signed-off-by: François JACQUES <fjacques@murex.com>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@johnlanni johnlanni merged commit 3d93dd6 into higress-group:envoy-1.27 Mar 27, 2025
1 of 2 checks passed
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.

Golang filter: add callback method for http plugin config destruction
3 participants