Skip to content

Make ReturnArgAction optional#1181

Merged
kevsecurity merged 1 commit into
mainfrom
pr/kevsecurity/make-returnargaction-optional
Jul 4, 2023
Merged

Make ReturnArgAction optional#1181
kevsecurity merged 1 commit into
mainfrom
pr/kevsecurity/make-returnargaction-optional

Conversation

@kevsecurity

@kevsecurity kevsecurity commented Jul 3, 2023

Copy link
Copy Markdown
Contributor

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

@olsajiri olsajiri left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

olsajiri commented Jul 3, 2023

Copy link
Copy Markdown
Contributor

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
@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

2 participants