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

Update Crossplane Runtime to v0.13 #57

Merged
merged 6 commits into from
Jun 1, 2021
Merged

Update Crossplane Runtime to v0.13 #57

merged 6 commits into from
Jun 1, 2021

Conversation

displague
Copy link
Collaborator

@displague displague commented May 30, 2021

Description of your changes

Updates Crossplane Runtime to v0.13

Part of #56

Checklist

I have:

  • Run make reviewable to ensure this PR is ready for review.
  • Ensured this PR contains a neat, self documenting set of commits.
  • Updated any relevant documentation, examples, or release notes.

displague added 2 commits May 30, 2021 18:02
- update xpr core.v1alpha1 to common.v1
- renames corev1 to xpv1
- update upbound build to latest
- update packngo to latest

Signed-off-by: Marques Johansson <mjohansson@equinix.com>
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
@displague
Copy link
Collaborator Author

@hasheddan I'm curious if there are any other important changes between v0.10 and v0.13 of XP-runtime that I may be missing. The most notable (only?) change that I encountered here was in the ProviderCrential handling.

I imagine I will need to update the documentation and example provider details.

@displague displague requested a review from hasheddan May 30, 2021 22:17
Comment on lines 84 to 88
deviceClient := CredentialedClient{
Client: client.Client.Devices,
PortsClient: client.Client.DevicePorts,
PortsClient: client.Client.DevicePorts, //nolint:staticcheck
Credentials: client.Credentials,
}
Copy link
Member

Choose a reason for hiding this comment

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

@displague along with those new credentials sources, we have some helpers to extract them so you can automatically get support for things like putting credentials in the filesystem or env vars. Here is an example :) https://github.com/crossplane/provider-aws/blob/959cc5b741fd7c2dafa7e20cac75ab55ae2c79bb/pkg/clients/aws.go#L105

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think I've got those changes applied. I noticed the TestConnect tests were no longer present in other providers. I updated them in this provider after copying some private error message consts from crossplane-runtime.

displague added 2 commits May 31, 2021 00:06
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
@displague displague requested a review from hasheddan May 31, 2021 04:26
Copy link
Member

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

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

Looks good to me! As we discussed offline, the changes reflected in crossplane/crossplane#2334 can also be made here since you are pulling in latest build. I'll go ahead and approve though as changes should not alter functionality :)

Signed-off-by: Marques Johansson <mjohansson@equinix.com>
@displague displague merged commit ad59260 into master Jun 1, 2021
@displague displague deleted the xpr-v0.13 branch June 1, 2021 13:05
@displague displague mentioned this pull request Jun 8, 2021
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