capactio / capact

Simple way to manage applications and infrastructure.
https://capact.io
Apache License 2.0
80 stars 19 forks source link

Get logs from executed Actions via Gateway #724

Open mszostok opened 2 years ago

mszostok commented 2 years ago

Description

Currently, we are able to get logs from executed Actions via Capact CLI, so user doesn't need to use the kubectl and get a proper pods names.

Both options work:

However, the first implementation was done via direct call to K8s cluster. This should be abstracted. We can implement a query and subscription on GraphQL endpoint or create a separate REST endpoint just for streaming logs.

Reason

The current solution requires a valid kubeconfig to a k8s cluster. It's not generic solution and additionally it's easy to use different cluster that the one configured by CLI login.

Use cases