-
Notifications
You must be signed in to change notification settings - Fork 6
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
Move and make utilizable common converters #20
Conversation
3810e95
to
8e4d34c
Compare
Signed-off-by: Sergen Yalçın <[email protected]>
8e4d34c
to
c5b4981
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.
Thanks @sergenyalcin, left some comments to discuss.
converters/common/common.go
Outdated
return errors.Wrap(convertTagsInPatchset(sourcePatchSets, tagsPatchSetName), "failed to convert patch sets") | ||
} | ||
|
||
func ConvertPatchesMap(sourceTemplate v1.ComposedTemplate, conversionMap map[string]string) []v1.Patch { |
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.
I think, at a future iteration, we can move this migration source field path to the migration target field path conversion functionality to the default converter implementation (migration.CopyInto) in the core framework.
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.
I agree. Let's handle this in a different iteration. It might be nice to merge this as soon as possible for other stakeholders to use.
Signed-off-by: Sergen Yalçın <[email protected]>
Signed-off-by: Sergen Yalçın <[email protected]>
9219a53
to
46bc6b3
Compare
Signed-off-by: Sergen Yalçın <[email protected]>
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 @sergenyalcin, lgtm.
Description of your changes
Depends on: crossplane/upjet#251
This PR:
Converters previously written in private repos are moved here as reusable components.
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested