do not marshal to application

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
This commit is contained in:
Charlie Chiang
2022-07-25 19:51:17 +08:00
parent 5e26c18dce
commit b80cbf811f
+1 -6
View File
@@ -305,15 +305,10 @@ func IsAddonDir(dirName string) (bool, error) {
if err != nil {
return false, err
}
content, err := out.LookupValue(renderOutputCuePath)
_, err = out.LookupValue(renderOutputCuePath)
if err != nil {
return false, fmt.Errorf("no output in %s: %w", AppTemplateCueFileName, err)
}
app := &v1beta1.Application{}
err = content.UnmarshalTo(app)
if err != nil {
return false, fmt.Errorf("no application in %s: %w", AppTemplateCueFileName, err)
}
return true, nil
}