Skip to content

Commit

Permalink
properly handle object creation error in template instantiate
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Dec 24, 2018
1 parent 85a0623 commit 5ba7b56
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/template/controller/templateinstance_controller.go
Expand Up @@ -501,7 +501,7 @@ func (c *TemplateInstanceController) instantiate(templateInstance *templatev1.Te
}
}
if createErr != nil {
allErrors = append(allErrors, mappingErr)
allErrors = append(allErrors, createErr)
continue
}

Expand Down
51 changes: 51 additions & 0 deletions test/extended/testdata/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5ba7b56

Please sign in to comment.