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

Node metadata matcher #154

Merged
merged 17 commits into from
Nov 19, 2020

Conversation

eapolinario
Copy link
Contributor

@eapolinario eapolinario commented Sep 28, 2020

This PR adds a matcher for node metadata fields. This is for #125.

Similarly to #137, we encode the node metadata information required in the aggregation rules in a pair of protos: (1) NodeMetadataMatch, and (2) NodeMetadataAction, the former related to the matching process, whereas the latter has to do with the formation of the fragment.

Envoy's node metadata is an opaque struct of type google.protobuf.Struct, which basically represents a dictionary of strings to Value.

This PR adds support for 3 of the 6 values: string, bool, and a nested struct of Value. The support for these other types is going to be added in separate PRs.

eapolinario and others added 17 commits September 28, 2020 02:40
Signed-off-by: eapolinario <[email protected]>
Signed-off-by: eapolinario <[email protected]>
Signed-off-by: eapolinario <[email protected]>
Signed-off-by: eapolinario <[email protected]>
Signed-off-by: eapolinario <[email protected]>
Signed-off-by: eapolinario <[email protected]>
Signed-off-by: eapolinario <[email protected]>
Signed-off-by: Jyoti Mahapatra <[email protected]>
@jyotimahapatra jyotimahapatra merged commit 70181db into envoyproxy:master Nov 19, 2020
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.

2 participants