-
Notifications
You must be signed in to change notification settings - Fork 89
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
Rename migration.Converter.ComposedTemplates as Composition #148
Conversation
0ee754c
to
99b4416
Compare
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.
Using the code from this PR, I successfully created a set of working converters, so I believe it is mergeable.
Thanks a lot for the outstanding work, @ulucinar!
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.
Thanks @ulucinar I left comments about documentation.
- And allow conversions on a Composite's spec.patchSets Signed-off-by: Alper Rifat Ulucinar <[email protected]>
- This method is called on a single migration source MR to have it converted/upgraded. So the semantics is to convert a resource. Signed-off-by: Alper Rifat Ulucinar <[email protected]>
Signed-off-by: Alper Rifat Ulucinar <[email protected]>
… migration converters Signed-off-by: Alper Rifat Ulucinar <[email protected]>
…nd target kinds do not match - Generate unique names for target composed templates Signed-off-by: Alper Rifat Ulucinar <[email protected]>
Signed-off-by: Alper Rifat Ulucinar <[email protected]>
…targets if they conform to the target's schema - Remove patches from targets if the patch target/source field does not exist or is of a different type in the target - Include patches in targets if the patch target/source field exists and is of the same type in the target Signed-off-by: Alper Rifat Ulucinar <[email protected]>
99b4416
to
78a6825
Compare
Description of your changes
This PR proposes changes to the
migration.Converter
interface so that:migration.Converter.ComposedTemplates
is renamed toComposition
migration.Converter.Composition
accepts thespec.patchSets
of a Composition, andspec.patchSets
of Composition's by the registered migration converters.Also we have the following improvements for the migration converters:
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested