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

Upgrade crossplane-runtime to v1.17.0 #437

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

smcavallo
Copy link
Contributor

@smcavallo smcavallo commented Sep 11, 2024

Signed-off-by: smcavallo [email protected]

Description of your changes

Upgrade crossplane-runtime to v1.17.0 with associated new implementations
See - https://github.com/crossplane/crossplane-runtime/releases/tag/v1.17.0

Implements Disconnect on ExternalClient interface
See - crossplane/crossplane-runtime#754

Implements ExternalDelete return type on method ExternalClient.Delete()
See - crossplane/crossplane-runtime#296

Upgrades go per error below:
go: module github.com/crossplane/[email protected] requires go >= 1.22.0; switching to go1.22.7

When attempting to upgrade an upjet-based provider to v1.17.0 of crossplane-runtime the below error is generated.
This PR should resolve that and allow consumers to upgrade to the newer runtime.
This is a breaking change in that any consumer who uses the newer version of upjet will also be forced to upgrade the newer version of crossplane-runtime (and also go >= 1.22.0)

/go/pkg/mod/github.com/crossplane/[email protected]/pkg/controller/external_async_tfpluginfw.go:60:43: impossible type assertion: ec.(*terraformPluginFrameworkExternalClient)
        *terraformPluginFrameworkExternalClient does not implement managed.ExternalClient (wrong type for method Delete)
                have Delete(context.Context, "github.com/crossplane/crossplane-runtime/pkg/resource".Managed) error
                want Delete(context.Context, "github.com/crossplane/crossplane-runtime/pkg/resource".Managed) (managed.ExternalDelete, error)
/go/pkg/mod/github.com/crossplane/[email protected]/pkg/controller/external_async_tfpluginsdk.go:60:9: cannot use &terraformPluginSDKAsyncExternal{…} (value of type *terraformPluginSDKAsyncExternal) as managed.ExternalClient value in return statement: *terraformPluginSDKAsyncExternal does not implement managed.ExternalClient (wrong type for method Delete)
                have Delete(context.Context, "github.com/crossplane/crossplane-runtime/pkg/resource".Managed) error
                want Delete(context.Context, "github.com/crossplane/crossplane-runtime/pkg/resource".Managed) (managed.ExternalDelete, error)

Fixes #

I have:

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

How has this code been tested

@ekarlso
Copy link

ekarlso commented Sep 16, 2024

@smcavallo Any on on when you will get an update on this?

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