Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

[Java] Create endpoint to stream log of integration #55

Closed
Tracked by #10
Delawen opened this issue Apr 1, 2022 · 0 comments · Fixed by #75
Closed
Tracked by #10

[Java] Create endpoint to stream log of integration #55

Delawen opened this issue Apr 1, 2022 · 0 comments · Fixed by #75
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Delawen
Copy link
Member

Delawen commented Apr 1, 2022

The API already supports deployment of integrations:

We need to implement a GET /integrations/$name/log endpoint that returns a stream of the log of the integration with name $name.

As a first iteration, instead of streaming, we can just return the current log with a parameter $lines returning the last $lines of the log /integrations/$name/log?lines=$lines .

Implementation Details

The cluster configuration is taken from ~/.kube configuration which can be created with the recommended quick setup for testing.

Recommended quick setup for testing:

The service that interacts with the cluster is https://github.com/KaotoIO/kaoto-backend/blob/main/cluster/src/main/java/io/kaoto/backend/deployment/ClusterService.java
That service must be called from the resource endpoint https://github.com/KaotoIO/kaoto-backend/blob/main/api/src/main/java/io/kaoto/backend/api/resource/IntegrationResource.java

@Delawen Delawen added the enhancement New feature or request label Apr 1, 2022
@Delawen Delawen added the good first issue Good for newcomers label Apr 1, 2022
@Delawen Delawen added this to What To Do in Where to start Apr 1, 2022
@Delawen Delawen changed the title Create endpoint to stream log of integration [Java] Create endpoint to stream log of integration Apr 1, 2022
@Delawen Delawen linked a pull request Jun 22, 2022 that will close this issue
Where to start automation moved this from What To Do to Done Jun 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Development

Successfully merging a pull request may close this issue.

1 participant