Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--exclude-healthy-pods #213

Open
felipecrs opened this issue Jan 24, 2023 · 2 comments · May be fixed by #276
Open

--exclude-healthy-pods #213

felipecrs opened this issue Jan 24, 2023 · 2 comments · May be fixed by #276
Labels
kind/feature New feature or request

Comments

@felipecrs
Copy link

This is somewhat similar to #189, but this isn't about making stern exit when reaching a condition.

Basically, I only want stern to show the logs for the pods which aren't in healthy state. As soon as the pod becomes healthy, stern should stop capturing the logs for that pod as well.

@felipecrs felipecrs added the kind/feature New feature or request label Jan 24, 2023
@superbrothers
Copy link
Member

It would be flexible to target Pods with certain conditions, like kubectl wait --for flag.

stern --for=condition=Ready=false nginx

@felipecrs
Copy link
Author

Hm... Yeah, I think this is a great idea!

@felipecrs felipecrs linked a pull request Aug 25, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants