Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 395 forks source link

plugins need a cross-compatible install hook #396

Closed bacongobbler closed 6 years ago

bacongobbler commented 7 years ago

Right now a plugin relies on a install hook to be installed in the proper location, such as a bash or python script. The issue with this workflow means that any user can write a script that satisfies their platform of choice, but it may not be compatible across all operating systems (Windows in particular). This install hook should be refactored in such a way that it is cross-compatible by default.

bacongobbler commented 7 years ago

looking into Go's plugin package for a hot-swappable plugin system. Example here: https://github.com/campoy/golang-plugins

And a fantastic writeup on the plugin system here: https://blog.ksub.org/bytes/2017/02/12/exploring-shared-objects-in-go/

bacongobbler commented 7 years ago

💩

The plugin support is currently incomplete, only supports Linux, and has known bugs.

https://golang.org/pkg/plugin/

bacongobbler commented 6 years ago

closed via #658