Any specific area of the project related to this PR?
Uncomment one (or more) /area <> lines:
/area build
/area plugin-sdk
/area tests
What this PR does / why we need it:
This PR changes the way we initialize the plugin object in the SDK in order to support multiple re-initializations.
See SetFuctory() comment for more detail.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
new(pkg/sdk/plugins): introduce FactoryFunc and SetFactory()
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/falcosecurity/plugin-sdk-go/blob/main/OWNERS)~~ [jasondellaluce,leogr]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
What type of PR is this?
/kind bug
/kind design
/kind feature
Any specific area of the project related to this PR?
/area plugin-sdk
What this PR does / why we need it:
This PR changes the way we initialize the plugin object in the SDK in order to support multiple re-initializations. See
SetFuctory()
comment for more detail.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: