-
Notifications
You must be signed in to change notification settings - Fork 93
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
Added support for init containers #15
Conversation
Init containers are considered, when their container status `Running` field is non nil
This looks great. Thanks, @davidreuss! I was worried about having to deal with these semantics:
But it looks like you handled it concisely by checking I'll give it a whirl shortly. |
Actually i think the |
@davidreuss : Good call. How about rolling it all up into |
Yep, thought as much, i’ll update the pr shortly. |
This also makes kail follow logs of unready containers, which is desirable when you're depending on log output of containers that might never enter ready state.
if name == cs.Name { | ||
return true | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just replace the !cs.Ready
expression; the rest is used for filtering by container name with --container
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, didn’t get that part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i won’t be near a computer until monday though, so it will have to wait sadly, but feel free to overtake this pr and put it back in, if you’d like, otherwise i’ll followup next week :)
@davidreuss: I fixed up the patch a bit in 67ab5fd and set you as the author. Thanks for the contribution! |
@boz was just about to pick this up again, but you beat me to it - thanks! 👍 |
Init containers are considered, when their container status
Running
field is non nil
Fixes #14