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

[patch] Change hook delete policy to both HookSucceeded and BeforeHookCreation #198

Merged
merged 2 commits into from
Sep 22, 2024

Conversation

whitfiea
Copy link
Contributor

When a hook completed we was leaving a number of resource around as these were not removed until the hook ran again. The delete policy was changed to hook succeeded.

In the case where the hook failed we still want to remove it as it would block further calls when the resource is a job as the max number of pods for the job would be reached. In this case we want to add the BeforeHookCreation policy so that is it removed before the hook is creation, but we want to keep the resources (pods of the jobs) around for debugging.

@whitfiea whitfiea merged commit b893ea6 into main Sep 22, 2024
2 checks passed
@whitfiea whitfiea deleted the ajw-hook branch September 22, 2024 08:02
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.

1 participant