File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,13 @@ The Kube-knark expose 2 hooks for user plugins [Example](https://github.com/chen
4949- ** OnK8sAPICallHook** - this hook accepts k8s api call event with all details (http request /response ,matching API spec)
5050- ** OnK8sFileConfigChangeHook** - this hook accepts master file configuration change event with command details (chown or chmod ,args and matching file change spec)
5151
52+ ##### Compile user plugin
53+ ```
54+ go build -buildmode=plugin -o=~/<plugin folder>/<plugin>.so ~/<plugin folder>/<plugin>.go
55+ ```
5256##### Copy plugin to folder (.kube-knark folder is created on the 1st startup)
5357```
54- cp <plugin>.go ~/.kube-knark/plugins/source /<plugin>.go
58+ cp ~/ <plugin folder>/bench_plugin.so ~/.kube-knark/plugins/compile /<plugin>.so
5559```
5660## Supported Specs
5761The Kube-knark support 2 specs and can be easily extended:
You can’t perform that action at this time.
0 commit comments