furiko-io / furiko

Kubernetes cron and batch job platform
https://furiko.io
Apache License 2.0
478 stars 21 forks source link

feat(cli): Implement logs command #126

Closed irvinlim closed 1 year ago

irvinlim commented 1 year ago

Adds a new command furiko logs, which fetches and streams logs for a single task (i.e. Pod) in a Job. The Pod must be running.

furiko-logs

codecov[bot] commented 1 year ago

Codecov Report

Base: 70.11% // Head: 70.36% // Increases project coverage by +0.24% :tada:

Coverage data is based on head (c11a29a) compared to base (2a4c5c0). Patch coverage: 81.09% of modified lines in pull request are covered.

:exclamation: Current head c11a29a differs from pull request most recent head 0e9eb65. Consider uploading reports for the commit 0e9eb65 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #126 +/- ## ========================================== + Coverage 70.11% 70.36% +0.24% ========================================== Files 193 194 +1 Lines 10049 10284 +235 ========================================== + Hits 7046 7236 +190 - Misses 2631 2661 +30 - Partials 372 387 +15 ``` | [Impacted Files](https://codecov.io/gh/furiko-io/furiko/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io) | Coverage Δ | | |---|---|---| | [pkg/cli/common/common.go](https://codecov.io/gh/furiko-io/furiko/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL2NsaS9jb21tb24vY29tbW9uLmdv) | `54.25% <50.00%> (-0.30%)` | :arrow_down: | | [pkg/cli/cmd/cmd\_logs.go](https://codecov.io/gh/furiko-io/furiko/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL2NsaS9jbWQvY21kX2xvZ3MuZ28=) | `81.25% <81.25%> (ø)` | | | [pkg/cli/cmd/cmd.go](https://codecov.io/gh/furiko-io/furiko/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL2NsaS9jbWQvY21kLmdv) | `87.23% <100.00%> (+0.27%)` | :arrow_up: | | [pkg/utils/testutils/assert.go](https://codecov.io/gh/furiko-io/furiko/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL3V0aWxzL3Rlc3R1dGlscy9hc3NlcnQuZ28=) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.