You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2020. It is now read-only.
Currently, there is no good way to load a plugin. A good example of this is the apiKey plugin that is shipped with Kanali. The following lines are from Kanali's Dockerfile.
RUN curl -O https://raw.githubusercontent.com/northwesternmutual/kanali-plugin-apikey/v1.2.0/plugin.go
RUN GOOS=`go env GOHOSTOS` GOARCH=`go env GOHOSTARCH` go build -buildmode=plugin -o apiKey_v1.2.0.so plugin.go
If this approach were taken for every plugin, a new Kanali image would be needed for each new plugin version. This is not ideal.
Proposed Solution
kanalictl follows the following pattern for its commands:
kanalictl [noun] [verb]
We can add a new noun, plugin and a new verb, load an example of this could be:
Current Problem
Currently, there is no good way to load a plugin. A good example of this is the
apiKey
plugin that is shipped with Kanali. The following lines are from Kanali'sDockerfile
.If this approach were taken for every plugin, a new Kanali image would be needed for each new plugin version. This is not ideal.
Proposed Solution
kanalictl
follows the following pattern for its commands:We can add a new noun,
plugin
and a new verb,load
an example of this could be:...and an example of a requirements file format:
kanali
will load compiled plugins form a configurable location. Hence, this new command would do the following:-buildmode=plugin -o <name>_<version>.so
.so
file in specified--location
This solution solves the stated problem because:
The text was updated successfully, but these errors were encountered: