How to write failureCondition when kubectl resources is form as a list #7434
-
I try to use argo workflow to generate Kubernetes resources, I saw the log, argo uses
to get the resources info, and the resource gives the following. I want to match one on the "type": "Failed" in conditions as evaluation of failureCondition, how should I write the syntex?
|
Beta Was this translation helpful? Give feedback.
Answered by
terrytangyuan
Dec 21, 2021
Replies: 1 comment
-
You can use something like: status.replicaStatuses.Worker.succeeded == 3 Looks like you are using Kubeflow MPI Operator? If so, this should be sufficient for most of your use cases. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
terrytangyuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use something like: status.replicaStatuses.Worker.succeeded == 3
Looks like you are using Kubeflow MPI Operator? If so, this should be sufficient for most of your use cases.