-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clustering): add cluster compat logic for wasm (#11217)
* chore(clustering): add cluster compat logic for wasm This adds basic cluster compatibility checks for wasm filters. The logic is similar to how plugin checks work today. That is, if a wasm filter is present on the control plane but _not_ on the data plane, config updates will not be sent to the data plane, and the control plane will set a (new) sync status for the data plane accordingly. This is accomplished by adding a new `filters` attribute to the basic_info payload that is sent by the data plane when initiating a connection to the control plane. The `filters` attribute is a map of strings to objects with a single `name` attribute: ```json { "my-filter": { "name": "my-filter", }, "my-other-filter": { "name": "my-other-filter", } } ``` Using a map instead of an array was done for convenience of member lookup (since we would probably convert the array to a map anyways), but I get that it looks a little silly/redundant in its current form. Open to changing this if there are objections. Down the road we can potentially come up with some scheme for more granular checks (i.e. a version or checksum field), but right now we just check if a filter is present or absent. * lint lint lint * fix cluster status schema test
- Loading branch information
Showing
7 changed files
with
315 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.