docker-archive / deploykit

A toolkit for creating and managing declarative, self-healing infrastructure.
Apache License 2.0
2.25k stars 262 forks source link

Add support for discovery of go plugins #324

Open wfarner opened 7 years ago

wfarner commented 7 years ago

Go 1.8 adds support for plugins, which i propose we support as a discovery mechanism for InfraKit plugins. Same-process plugins will simplify environments where the allowed/supported plugins are static and managing additional daemons causes operational overhead.

Similar to the existing support for layering Plugin interfaces with HTTP-based communication, we should provide a way to expose an implementation of our go SPIs as a go plugin.

chungers commented 7 years ago

IMHO it's interesting but a few practical concerns:

A few other philosophical concerns:

wfarner commented 7 years ago

@chungers aren't all of your concerns alleviated by the fact that using a go plugin is a choice? The proposal is to add support for plugins, not to remove or change existing support.