skip plugin if the hook methond is not defined
@@ -952,6 +952,10 @@ func (act *applicationReconcilerTask) runComponentPlugins(methodName string, com
return fmt.Errorf("Can't find plugin %s in cache.", tmp.Name)
}
+ if !pluginProgram.Methods[methodName] {
+ continue
+ }
+
rt := act.initPluginRuntime(component)
rt.Set("scope", "component")
@@ -981,6 +985,10 @@ func (act *applicationReconcilerTask) runApplicationPlugins(methodName string, c
return fmt.Errorf("Can't find plugin %s in cache.", tmp.Name)
}
+ if !pluginProgram.Methods[methodName] {
+ continue
+ }
+
rt := act.initPluginRuntime(component)
rt.Set("scope", "application")
