TemplateProcessor can add custom resource schemas to openapi

This commit is contained in:
Katrina Verey
2021-05-12 14:48:03 -07:00
parent 9557888b32
commit 0fdf0f825f
9 changed files with 270 additions and 19 deletions

View File

@@ -111,7 +111,7 @@ func Execute(p ResourceListProcessor, rlSource *kio.ByteReadWriter) error {
rl := ResourceList{}
var err error
if rl.Items, err = rlSource.Read(); err != nil {
return errors.Wrap(err)
return errors.WrapPrefixf(err, "failed to read ResourceList input")
}
rl.FunctionConfig = rlSource.FunctionConfig