mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
do not marshal to application
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
This commit is contained in:
+1
-6
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user