-
Notifications
You must be signed in to change notification settings - Fork 240
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
feat: introduce allowedTransferTypes in DataPlaneInstance #3952
feat: introduce allowedTransferTypes in DataPlaneInstance #3952
Conversation
@@ -71,6 +72,10 @@ private void transformProperties(String key, JsonValue jsonValue, DataPlaneInsta | |||
var set = jsonValue.asJsonArray().stream().map(jv -> transformString(jv, context)).collect(Collectors.toSet()); | |||
builder.allowedSourceTypes(set); | |||
} | |||
case ALLOWED_TRANSFER_TYPES -> { | |||
var set = jsonValue.asJsonArray().stream().map(jv -> transformString(jv, context)).collect(Collectors.toSet()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't it be more robust to use transformArray
or transformArrayOrObject
instead? IIRC they should be able to handle string arrays
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we handle correctly a transforArray
or transformArrayOrObject
with String.class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this way, because it's more explicit
@@ -71,6 +72,10 @@ private void transformProperties(String key, JsonValue jsonValue, DataPlaneInsta | |||
var set = jsonValue.asJsonArray().stream().map(jv -> transformString(jv, context)).collect(Collectors.toSet()); | |||
builder.allowedSourceTypes(set); | |||
} | |||
case ALLOWED_TRANSFER_TYPES -> { | |||
var set = jsonValue.asJsonArray().stream().map(jv -> transformString(jv, context)).collect(Collectors.toSet()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this way, because it's more explicit
What this PR changes/adds
Introduces
allowedTransferTypes
in DataPlaneInstance.A new
select
method has been added toDataPlaneSelectorService
to support selection based also on thetransferType
. If it's not present the behaviour will be as today only inspecting source/destination.The current
DataFlowController
s don't use thetransferType
for selection. For the data plane signaling a newDataFlowController
will be introduced #3901 that will take into account thetransferType
for dispatching the request to the right data plane.Why it does that
enabling data plane signaling protocol for selecting the correct data plane instance
Linked Issue(s)
Closes #3943