From 79d90edb370125d54124df72396762e65c94a28e Mon Sep 17 00:00:00 2001 From: smcavallo Date: Wed, 11 Sep 2024 16:19:24 -0400 Subject: [PATCH] update toolchain and move disconnect method Signed-off-by: smcavallo --- go.mod | 2 -- pkg/controller/external.go | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 96f9f89b..6fe518e4 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,6 @@ module github.com/crossplane/upjet go 1.22.7 -toolchain go1.23.1 - require ( dario.cat/mergo v1.0.0 github.com/alecthomas/kingpin/v2 v2.4.0 diff --git a/pkg/controller/external.go b/pkg/controller/external.go index 9f60c56f..cdfbed60 100644 --- a/pkg/controller/external.go +++ b/pkg/controller/external.go @@ -140,10 +140,6 @@ type external struct { logger logging.Logger } -func (e *external) Disconnect(ctx context.Context) error { - return nil -} - func (e *external) scheduleProvider(name string) (bool, error) { if e.providerScheduler == nil || e.workspace == nil { return false, nil @@ -432,6 +428,10 @@ func (e *external) Delete(ctx context.Context, mg xpresource.Managed) (managed.E return managed.ExternalDelete{}, errors.Wrap(e.workspace.Destroy(ctx), errDestroy) } +func (e *external) Disconnect(_ context.Context) error { + return nil +} + func (e *external) Import(ctx context.Context, tr resource.Terraformed) (managed.ExternalObservation, error) { res, err := e.workspace.Import(ctx, tr) if err != nil {