Skip to content

Conversation

samuelmasuy
Copy link
Contributor

Add 'previous' parameter to pods_log tool to retrieve logs from terminated containers, equivalent to kubectl logs --previous functionality. This enables debugging of containers that have restarted due to crashes or updates.

Add 'previous' parameter to pods_log tool to retrieve logs from terminated containers, equivalent to kubectl logs --previous functionality.
This enables debugging of containers that have restarted due to crashes or updates.

Co-Authored-By: opencode <[email protected]>
Signed-off-by: Samuel Masuy <[email protected]>
@samuelmasuy
Copy link
Contributor Author

cc: @manusa

@manusa
Copy link
Member

manusa commented Aug 11, 2025

Needs reviewing, currently focused on authorization.
Please allow for some time to properly review (overall looks good).

@zou-weidong
Copy link

I'm waiting for this feature too.

@manusa
Copy link
Member

manusa commented Sep 3, 2025

/cc @ardaguclu

From my side is OK.

@ardaguclu
Copy link
Member

That looks reasonable to me. Also maybe --all-containers would be useful too

Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@manusa manusa added this to the 0.1.0 milestone Sep 11, 2025
@manusa manusa merged commit 6c573f3 into containers:main Sep 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants