add validation transformer

This commit is contained in:
Jingfang Liu
2019-05-29 13:49:31 -07:00
committed by jingfangliu
parent dd75392d98
commit b4dbac1b84
5 changed files with 135 additions and 5 deletions

View File

@@ -148,7 +148,7 @@ func (p *ExecPlugin) Transform(rm resmap.ResMap) error {
// invoke the plugin with resources as the input
output, err := p.invokePlugin(resources)
if err != nil {
return err
return fmt.Errorf("%v %s", err, string(output))
}
// update the original ResMap based on the output