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

Switch to structured merge diff #272

Merged
merged 16 commits into from
Jan 22, 2025
Merged

Switch to structured merge diff #272

merged 16 commits into from
Jan 22, 2025

Conversation

jveski
Copy link
Collaborator

@jveski jveski commented Jan 22, 2025

The new structured merge diff libraries used by apiserver server-side apply are a nicer solution to strategic merge patch than the old approach. They expose the diff and allow callers to modify it before applying, which will enable partial reconciliation in the future (a very important feature for Eno).

Adopting structured merge diff also has the benefit of removing the mungeDiff function which has caused us much grief historically. It will immediately solve one known bug: removing properties doesn't currently work correctly.

Jordan Olshevski added 2 commits January 22, 2025 21:15
@jveski jveski enabled auto-merge (squash) January 22, 2025 21:20
@jveski jveski changed the title Switch to SMD for three-way merge Switch to structured merge diff for three-way merge Jan 22, 2025
@jveski jveski changed the title Switch to structured merge diff for three-way merge Switch to structured merge diff Jan 22, 2025
Jordan Olshevski added 2 commits January 22, 2025 22:57
@jveski jveski merged commit ac43e71 into main Jan 22, 2025
27 checks passed
@jveski jveski deleted the smd branch January 22, 2025 23:23
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.

None yet

3 participants