Closed wlan0 closed 6 years ago
In order to try this out
cd short-project-path
# ensure that it is not a static build (avoid ./scripts/build.sh)
go build
# build the plugin. Make sure you're using go1.10 (previous versions have CGO requirements)
go build -buildmode=plugin -o .short-plugins/kube_installer.so examples/kube_installer.go
# transform and install using the plugin
./short -k --plugin=kube_installer.so -f short-file.yaml
This PR also add support for 3 plugin commands. Note that default plugin path is .short-plugins
# list plugins installed
./short plugin ls
# install new plugin
./short plugin install test-plugin --path=/path/to/plugin
# delete installed plugin
./short plugin rm test-plugin
@rrati @jayunit100 this PR adds support for different installers. Will shortly be adding support for adding custom transformers.