Is the following expression a valid check for successCondition
in the ResourceTemplate
#5776
-
https://argoproj.github.io/argo-workflows/fields/#fields_39 successCondition: func() string {
res := successCheck() // Do some checks
if res {
return "true"
}
return "false"
}() |
Beta Was this translation helpful? Give feedback.
Answered by
terrytangyuan
May 4, 2021
Replies: 1 comment 2 replies
-
The current implementation uses https://pkg.go.dev/k8s.io/apimachinery/pkg/labels#Parse to parse the success and failure conditions. You can read more about the syntax in the documentation. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
terrytangyuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current implementation uses https://pkg.go.dev/k8s.io/apimachinery/pkg/labels#Parse to parse the success and failure conditions. You can read more about the syntax in the documentation.