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

Use manually built Siddhi Runner image's dependencies for passing Siddhi App #56

Closed
pcnfernando opened this issue Jul 19, 2019 · 0 comments · Fixed by siddhi-io/distribution#273 or #71
Assignees
Milestone

Comments

@pcnfernando
Copy link
Contributor

Description:
At the moment, we are using Siddhi Parser service to create partial Siddhi apps to be distributed based on the state of the queries by the Siddhi Kubernetes Operator.
This service furthermore, provides information about whether we need to create ingresses to expose the endpoints based on the source types.
In order to retrieve this information, within parser service, we compile the user-given Siddhi app creating a SiddhiAppRuntime. In order to successfully create a SiddhiAppRuntime for the Siddhi app, we need to have all extension JARs in Siddhi Parser's classpath.

During the 0.2.0-m1 Siddhi Parser release, we included all the jars that were bundled in the distribution's vanilla version(5.1.0-m1).
Let's assume that a user creates a custom extension and creates a Siddhi-Runner docker image manually and use it within the Siddhi custom resource. In this scenario, the Siddhi parser service would fail since its classpath does not have the custom JAR.

As a solution, we need to use all the JARs that are bundled in the Siddhi Runner docker image provided through the Siddhi Custom resource or configured as an Operator configuration.
To achieve this, we are going to move the Siddhi Parser component to the Siddhi Runner distribution itself and expose its functionality through a script.
From this approach, the Siddhi Operator can run the Siddhi Parser script in Siddhi Runner image and get the distributed partial Siddhi apps and other needed information to be used during deployment from it.

Affected Product Version:
0.2.0-m1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant