Score:1

How to include two phase types to look for in `oc wait` command

ai flag

I'm editing a script that calls the oc wait command with these parameters:

oc wait --for=condition=Ready pod --field-selector=status.phase!=Terminating -l app=foo --timeout=55s

The above command executes successfully, but I need to check for InvalidImageName in addition to Terminating in the --field-selector=status.phase option.

I've tried

oc wait --for=condition=Ready pod --field-selector=status.phase!=Terminating||InvalidImageName -l app=foo --timeout=55s

But that does not work.

What is the correct way to format this command?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.