Skip to content
Discussion options

You must be logged in to vote

Iterating over container status as is done in the main post and imp's answer should both work.

Do note that we already expose the Condition interface for many of these use cases. In particular is_pod_running is similar.

conditions can be used with an await_condition (if you are waiting for a pod to become ready) or you can pass it an Option<&Pod> that you have at hand (if you just want to check).

but if you are looking for one or all containers specifically in that same interface we have a setup like this in test code;

        fn is_each_container_ready() -> impl Condition<Pod> {
            |obj: Option<&Pod>| {
                if let Some(o) = obj {
                    if let Some(s) = &o.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@clux
Comment options

clux Oct 19, 2025
Maintainer

@Masber
Comment options

@imp
Comment options

@clux
Comment options

clux Oct 19, 2025
Maintainer

Comment options

You must be logged in to vote
2 replies
@Masber
Comment options

@clux
Comment options

clux Oct 19, 2025
Maintainer

Answer selected by Masber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants