You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
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.
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:
kind
https://github.com/kubernetes-sigs/kindcamel-k
https://camel.apache.org/camel-k/installation/platform/kind.htmlThe 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
The text was updated successfully, but these errors were encountered: