This commit is contained in:
Donny Xia
2020-06-29 11:12:20 -07:00
parent 94a55210e1
commit 8d543d8483
8 changed files with 364 additions and 478 deletions

View File

@@ -168,9 +168,9 @@ func (l *Loader) makeBuiltinPlugin(r resid.Gvk) (resmap.Configurable, error) {
}
func (l *Loader) loadPlugin(res *resource.Resource) (resmap.Configurable, error) {
_, err := execplugin.GetFunctionSpec(res)
if err == nil {
return execplugin.NewFnPlugin(&l.pc.FnpLoadingOptions), nil
spec := fnplugin.GetFunctionSpec(res)
if spec != nil {
return fnplugin.NewFnPlugin(&l.pc.FnpLoadingOptions), nil
}
return l.loadExecOrGoPlugin(res.OrgId())
}