Skip to content

move appwrapper finalizer injection from defaulting webhook to controller #307

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

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

dgrove-oss
Copy link
Collaborator

@dgrove-oss dgrove-oss commented Jan 31, 2025

defaulting webhooks can run in any order, therefore we can't rely using the value of managedBy seen by our defaulter to figure out whether or not we should add the appwrapper finalizer.

To reduce reconciliation conflicts with Kueue, defer adding the finalizer until we are taking the Suspended to Resuming transition (which will only happen after Kueue's workload controller successfully updates Spec.Suspend).

defaulting webhooks can run in any order, therefore we
can't rely using the value of managedBy seen by our defaulter
to figure out whether or not we should add the appwrapper finalizer.

To reduce reconciliation conflicts with Kueue, defer adding the
finalizer until we are taking the Suspended to Resuming transition
(which will only happen after Kueue's workload controller successfully
updates Spec.Suspend).
@dgrove-oss dgrove-oss requested a review from tardieu January 31, 2025 01:43
@dgrove-oss dgrove-oss added the bug Something isn't working label Feb 4, 2025
@dgrove-oss dgrove-oss changed the title bug fix in managedBy logic move finalizer injection from webhook to controller Feb 4, 2025
@dgrove-oss dgrove-oss changed the title move finalizer injection from webhook to controller move appwrapper finalizer injection from defaulting webhook to controller Feb 4, 2025
@dgrove-oss dgrove-oss merged commit b9378e7 into project-codeflare:main Feb 4, 2025
3 checks passed
@dgrove-oss dgrove-oss deleted the managedBy branch March 20, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant