Skip to content

Commit

Permalink
Regard resource templates as leaf nodes (argoproj#1593)
Browse files Browse the repository at this point in the history
This enables retryStrategy to be respected on resource templates.
This closes argoproj#1370
  • Loading branch information
Erik Parmann authored and sarabala1979 committed Sep 5, 2019
1 parent 89e959e commit 07a26f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/workflow/v1alpha1/workflow_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ func (tmpl *Template) IsPodType() bool {
// IsLeaf returns whether or not the template is a leaf
func (tmpl *Template) IsLeaf() bool {
switch tmpl.GetType() {
case TemplateTypeContainer, TemplateTypeScript:
case TemplateTypeContainer, TemplateTypeScript, TemplateTypeResource:
return true
}
return false
Expand Down

0 comments on commit 07a26f1

Please sign in to comment.