Closed Rohith-Raju closed 1 year ago
Welcome @Rohith-Raju! It looks like this is your first PR to falcosecurity/plugin-sdk-go 🎉
ei @Rohith-Raju thank you for this, if I correctly understood the issue, the check should be even easier than this, you can do it in the go-side, the code would be something very similar to this
https://github.com/falcosecurity/plugin-sdk-go/blob/c2c8a3e406da1828cd9a00c7dab39b2db0855286/pkg/sdk/symbols/info/info.go#L108
if pRequiredAPIVersion
is different from "" you have to compute a semver check between pRequiredAPIVersion
and C.get_default_required_api_version()
Ooops Jason is faster than me as always :rocket: :laughing:
@Andreagit97 @jasondellaluce, This makes total sense. I took a look at this and went overboard 😆 . My bad!!. Fixed it now. WDYT? Btw do we need to add panic tests?
Sure, Thank you for reviewing my PR!!
LGTM label has been added.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: leogr, Rohith-Raju
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/unhold
/unhold
What type of PR is this? /kind documentation /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 checks if user's
RequiredAPIVersion
followssemver
system and checks if is compatible withinternally-supported API version
Which issue(s) this PR fixes:
Fixes #51
Special notes for your reviewer:
Does this PR introduce a user-facing change?: