Skip to content

tcp proxy: add metadata_match to tcp proxy config#520

Merged
ggreenway merged 2 commits intoenvoyproxy:masterfrom
snowp:tcp-metadata
Mar 2, 2018
Merged

tcp proxy: add metadata_match to tcp proxy config#520
ggreenway merged 2 commits intoenvoyproxy:masterfrom
snowp:tcp-metadata

Conversation

@snowp
Copy link
Copy Markdown
Contributor

@snowp snowp commented Mar 2, 2018

This should allow the tcp proxy to target a specific subset of endpoints
in a cluster by matching on the metadata, similar to what is currently
possible in the http_connection_manager filter.

See envoyproxy/envoy#2696

Signed-off-by: Snow Pettersen snowp@squareup.com

Snow Pettersen added 2 commits March 1, 2018 19:23
This should allow the tcp proxy to target a specific subset of endpoints
in a cluster by matching on the metadata, similar to what is currently
possible in the http_connection_manager filter.

See envoyproxy/envoy#2696

Signed-off-by: Snow Pettersen <snowp@squareup.com>
Signed-off-by: Snow Pettersen <snowp@squareup.com>
@htuch
Copy link
Copy Markdown
Member

htuch commented Mar 2, 2018

Looks good to me, @zuercher can you drive the review on the API and implementation side for this given that you did the original subset LB?

Copy link
Copy Markdown
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

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

Looks good. Do you want to leave this open while you publish a first pass at the Envoy PR? (It's up to you, I don't think this will need to change.)

@snowp
Copy link
Copy Markdown
Contributor Author

snowp commented Mar 2, 2018

I think this is fine to merge. I'll try to get the enovy PR up sometime today or this weekend

@ggreenway ggreenway merged commit 15dc537 into envoyproxy:master Mar 2, 2018
alyssawilk pushed a commit to envoyproxy/envoy that referenced this pull request Mar 8, 2018
…2708)

Description:
This implements metadata_match for the tcp filter, which
will allow users to specify a metadata criteria that specifies what
endpoints should be considered selecting an upstream connection to the cluster.

Risk Level: Low
Small optional feature

Testing:
Added a unit test that verifies that TcpFilter#metadataMatchCriteria returns the criteria specified in the config.

Release Notes:
Added support for specifying a metadata matcher for upstream clusters in the tcp filter

Fixes #2696

API Changes
envoyproxy/data-plane-api#520

Signed-off-by: Snow Pettersen <snowp@squareup.com>
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.

4 participants