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: Support custom service tags and service selection for adapters #2691
Conversation
Hello there 👋 |
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.
Great contribution @dominikriemer
Is the new Service Selection
UI group automatically part of every adapter, pipeline element etc.? Does it default to Any available service
?
Do we need a migration for existing StreamPipes instances?
g.getAppId(), | ||
ExtensionsServiceEndpointUtils.getPipelineElementType(g)) | ||
.getEndpointResourceUrl(); | ||
public class DeploymentConfiguration { |
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.
This could also be a record
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.
And can we rename it to something like ProcessingElementDeploymentConfiguration? Just to make it clear that it has nothing to do with the actual StreamPipes deployment configuration.
...l/src/main/java/org/apache/streampipes/model/extensions/svcdiscovery/SpServiceTagPrefix.java
Outdated
Show resolved
Hide resolved
This PR only supports service selection for adapters (not pipeline elements). There should be no migration required and the feature should work for all adapters. Default is any available service, with the custom selection disabled if there are no services found. |
…pache/streampipes into support-service-selection-for-adapters
Purpose
The PR introduces dynamic selection of extension services for adapters. Setting an optional new environment variable
SP_SERVICE_TAGS
assigns a comma-separated list of custom service tags to an extension service. When creating a new adapter, users can provideDeployment Settings
by either choosing the option to select a random service the adapter gets deployed to, or they can filter the target service by custom service tags. With this feature, it becomes possible to assign the execution of an adapter to a specific edge device.Remarks
PR introduces (a) breaking change(s): no
PR introduces (a) deprecation(s): no