-
Notifications
You must be signed in to change notification settings - Fork 230
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
Merge pipeline design doc #2623
Conversation
cc @morgante @jafcrocker Please review the doc and provide feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good to me. Nailing down the identify of the items in the pipeline definitely makes the problem more tractable.
From what I learned when working on Strategic Merge Patch:
There are 3 critical parts we need to design here:
IMO we should simplify the merge key design. I'd suggest using Relative order in the |
@mengqiy @droot I agree that the description should be simple. But just going by the image name will lead to deletion of functions if multiple functions with same image are declared(e.g. search-replace). We need not document all the nuances and just mention that only image is used as fall back merge key in case name is not specified. Users can leverage |
This is mostly the same approach I suggested in an earlier comment. This leaves three different ways to do the merge ( |
@mortent I agree. We should use image as the fall back option for merge key. And users should only be exposed to that detail in the user facing docs. What if users are not aware of this and declared multiple functions with same image and no name field specified ? I am doing the best effort here to not delete the functions during merge. This detail need not be exposed to the user. We can just say, the behavior will not be deterministic and use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doc introduces a new feature to merge the pipeline section in the Kptfile. This has been a problem since the release of kpt v1 and this doc hopes to solve that.