Skip to content

Avoid storing PodSet inference results in Spec #147

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 6 commits into from
Jun 6, 2024

Conversation

dgrove-oss
Copy link
Collaborator

Store the results of PodSet inference in the Status, not the Spec. This means we end up doing the inference twice for each AppWrapper (once in the ValidatingWebHook for error checking and again later in the Controller when we have access to the Status), but it avoids mutating the user-provided Spec. Avoiding Spec mutations avoids spurious rejections when the user does multiple kubectl apply operations that do not change the Component itself.

@dgrove-oss dgrove-oss requested a review from tardieu June 6, 2024 18:09
@dgrove-oss dgrove-oss added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Jun 6, 2024
@dgrove-oss dgrove-oss merged commit 5bee10e into project-codeflare:main Jun 6, 2024
2 checks passed
@dgrove-oss dgrove-oss deleted the defer-inference branch June 6, 2024 22:04
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.

1 participant