Change Makefile manifests command's rbac:roleName=integrations-template to rbac:roleName=integrations-<name>
快捷指令
macos
sed -i '' -e 's/template/coding/g' Makefile
Change config/data resource data to match your own plugin, remove any if necessary
快捷指令
macos
sed -i '' -e 's/template/coding/g' `grep -rl template config/data`
Implement a plugin by changing pkg/plugin.go, etc.
快捷指令
macos
sed -i '' -e 's/TemplatePlugin/TemplateCoding/g' pkg/plugin.go
sed -i '' -e 's/template/coding/g' `grep -rl template pkg/plugin.go`
Enable/disable functionalities in cmd/plugin/main.go according to the plugin's implementation
快捷指令
macos
sed -i '' -e 's/template/coding/g' `grep -rl template go.mod`
sed -i '' -e 's/template/coding/g' `grep -rl template cmd/plugin/main.go`
sed -i '' -e 's/TemplatePlugin/TemplateCoding/g' `grep -rl TemplatePlugin pkg `
sed -i '' -e 's/template/coding/g' `grep -rl template pkg `
If necessary add/change rbac rules inside cmd/plugin/main.go
Deployment considerations
When using a WebhookReceiver the ingress full address should be provide in the deployment as WEBHOOK_ADDRESS envvar. See config/plugin/plugin.yaml for more information
resource requests and limits were not tested and should be changed for a real deployment situation