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

Add example converter for conversion of singleton lists to embedded objects #397

Merged
merged 2 commits into from
May 14, 2024

Conversation

sergenyalcin
Copy link
Member

Description of your changes

Depends on #387

This PR adds an example converter library for conversion of singleton lists to embedded objects.

I have:

  • Read and followed Upjet's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested locally against to provider-gcp.

…o embedded object

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
Copy link
Collaborator

@ulucinar ulucinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sergenyalcin, left some comments for you to consider. One further point is that I feel like this conversion utility better belongs to the pkg/examples package, which contains the example manifest generation pipeline (or a subpackage of it, like pkg/examples/conversion or similar). What do you think?

pkg/config/example_conversions.go Outdated Show resolved Hide resolved
pkg/config/example_conversions.go Outdated Show resolved Hide resolved
pkg/config/example_conversions.go Outdated Show resolved Hide resolved
pkg/config/example_conversions.go Outdated Show resolved Hide resolved
pkg/config/example_conversions.go Outdated Show resolved Hide resolved
pkg/config/example_conversions.go Outdated Show resolved Hide resolved
pkg/config/example_conversions.go Outdated Show resolved Hide resolved
pkg/config/example_conversions.go Outdated Show resolved Hide resolved
pkg/config/example_conversions.go Outdated Show resolved Hide resolved
pkg/config/example_conversions.go Outdated Show resolved Hide resolved
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
Copy link
Collaborator

@ulucinar ulucinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sergenyalcin, lgtm.

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.

2 participants