Skip to content

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