Add IsPodFailed function
Related tasks
Context
There are some cases when waiting for pods where the pod reaching a failed state is a valid reason to stop waiting. Currently, there are helper functions to check that pods are in the Running
and Completed
states, but not for the Failed
state.
Change
This MR adds the IsPodFailed
helper function to the kubernetes
package.