Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ReturnArgAction optional #1181

Merged
merged 1 commit into from Jul 4, 2023

Conversation

kevsecurity
Copy link
Contributor

@kevsecurity kevsecurity commented Jul 3, 2023

The ReturnArgAction was added to the KProbeSpec to allow actions to be taken on the return values from hooked functions. It was specified as an enumeration in order to constrain its use to the supported actions, namely: Post, TrackSock and UntrackSock. This has the unintended consequence of making it non-optional through K8S validation.

This commit makes the ReturnArgAction optional.
Fixes: f851189

The ReturnArgAction was added to the KProbeSpec to allow actions to be
taken on the return values from hooked functions. It was specified as an
enumeration in order to constrain its use to the supported actions,
namely: Post, TrackSock and UntrackSock. This has the unintended
consequence of making it non-optional through K8S validation.

This commit makes the ReturnArgAction optional.

Signed-off-by: Kevin Sheldrake <kevin.sheldrake@isovalent.com>
@kevsecurity kevsecurity requested a review from a team as a code owner July 3, 2023 13:00
@kevsecurity kevsecurity requested a review from jrfastab July 3, 2023 13:00
Copy link
Contributor

@olsajiri olsajiri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add the 'fixes: commit' tag for reference?

@kevsecurity
Copy link
Contributor Author

could you please add the 'fixes: commit' tag for reference?

I don't think there's an issue for this; just a Slack thread.

@kevsecurity kevsecurity requested a review from olsajiri July 3, 2023 14:51
@olsajiri
Copy link
Contributor

olsajiri commented Jul 3, 2023

could you please add the 'fixes: commit' tag for reference?

I don't think there's an issue for this; just a Slack thread.

I mean the commit number that broke it

@kevsecurity kevsecurity merged commit cf8c11c into main Jul 4, 2023
19 of 20 checks passed
@kevsecurity kevsecurity deleted the pr/kevsecurity/make-returnargaction-optional branch July 4, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants