Skip to content

Commit

Permalink
Regard resource templates as leaf nodes
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 committed Sep 4, 2019
1 parent 9685d7b commit a21b574
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 a21b574

Please sign in to comment.