This PR is intended to stream the pod logs in Loki to address issue #1
As goroutines are employed to stream the pod logs, to keep them active, we need to ensure that the main doesn't terminate. Hence, a new flag stream-duration is newly introduced. This will keep main active and the streaming will continue for a duration as set by stream-duration. Default value of stream-duration is set to 1 hour.
This PR is intended to stream the pod logs in Loki to address issue #1
As goroutines are employed to stream the pod logs, to keep them active, we need to ensure that the
main
doesn't terminate. Hence, a new flagstream-duration
is newly introduced. This will keepmain
active and the streaming will continue for a duration as set bystream-duration
. Default value ofstream-duration
is set to 1 hour.