Replies: 2 comments 6 replies
-
RPC between addon and core or Agent-Server gRPC? Suppose, |
Beta Was this translation helpful? Give feedback.
-
One thing I noticed when thinking about the config api again ist that we should probably decided how we allow admins & maybe users to use plugins. For forges I think this approach makes sense. The previous approach using go-plugins seemed to be already causing some issues, but using pure http seems a bit off for sth deeply integrated as forges are currently. For sth like config, secrets & registries it would be nice to allow repo / org admins to use their own plugins. We could allow grpc for that as well, but I actually think the http approach similar to the config-api as I started it months ago in #915 could be better suited and would be easier for developers to implement? |
Beta Was this translation helpful? Give feedback.
-
This is actually more a personal to-do-note instead of a discussion. Feel free to comment if you have ideas, but don't expect me to answer this.
It looks like there is no maintainer except me who supports the current system, which I can understand to some extent.
The current plugin system is based on Go's internal plugin system which has some issues:
The only alternative to it that's mature enough is afaik https://github.com/hashicorp/go-plugin.
It fixes all these issues above if you use it correctly.
It's much harder to use it though cause you can't use it with complex types (it's hard already to use
struct
s inreturn
s and arguments) and you must specify gRPC interfaces manually.I need to investigate more research here.
Beta Was this translation helpful? Give feedback.
All reactions