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

Use a local runtime.Scheme with the migration.Registry #146

Merged
merged 5 commits into from
Jan 3, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Dec 14, 2022

Description of your changes

This PR proposes a change to use a local runtime.Scheme with the migration.Registry instead of a global scheme. The migration.Registry now has methods to register claim and composite resource types to be migrated.

It also mkdirs all folders before putting a file with the FileSystem target.

I have:

  • Read and followed Crossplane'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 with a migrator for proviider-terraform and provider-aws resources.

- Mkdir all folders before putting a file with the FileSystem target

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
@ulucinar ulucinar marked this pull request as draft December 14, 2022 23:10
@ulucinar ulucinar force-pushed the local-scheme branch 5 times, most recently from 58dcbdc to 91280c2 Compare December 15, 2022 11:46
@ulucinar ulucinar marked this pull request as ready for review December 15, 2022 11:46
- Plan generated now versions the plans it generates

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
ulucinar and others added 3 commits December 15, 2022 15:19
…entation in Kubernetes migration source

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
…1.Compositions

- FromUnstructured may fail on v1.Compositions due to:
  kubernetes-sigs/structured-merge-diff#230

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
Signed-off-by: Sergen Yalçın <[email protected]>
Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@ulucinar ulucinar merged commit d381e87 into crossplane:main Jan 3, 2023
@ulucinar ulucinar deleted the local-scheme branch January 3, 2023 09:46
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