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

add IgnoreHookError patch option #538

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

miklezzzz
Copy link
Contributor

@miklezzzz miklezzzz commented Oct 13, 2023

Overview

This PR adds additional patch_option for Filter/Patch operations named IgnoreHookError and some execution logic around it.

What this PR does / why we need it

If IgnoreHookError is set to true for a Filter/Patch operation and WithSubresource equals to /status, such an operation will be applied even in case of the hook failure.
It can come in handy in a situation when a hook operates around some kubernetes resource and one wants to make it more obvious when the resource was noticied/processed/etc by the hook last time by means of status fields.

This way we could provide some meaningful statuses or a feedback loop on what happens when a hook is executed.

Special notes for your reviewer

Signed-off-by: Mikhail Scherba <[email protected]>
@miklezzzz miklezzzz added the enhancement New feature or request label Oct 13, 2023
@yalosev yalosev added the run/tests Run tests on full matrix of k8s versions label Oct 13, 2023
@github-actions github-actions bot removed the run/tests Run tests on full matrix of k8s versions label Oct 13, 2023
@yalosev yalosev merged commit aa38dfc into main Oct 13, 2023
17 checks passed
@yalosev yalosev deleted the add-ignore-hook-error-operation-option branch October 13, 2023 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants