diff --git a/pkg/controller/external_async_nofork.go b/pkg/controller/external_async_nofork.go index 7d8eaa4a..6b4a1494 100644 --- a/pkg/controller/external_async_nofork.go +++ b/pkg/controller/external_async_nofork.go @@ -160,7 +160,7 @@ func (n *noForkAsyncExternal) Update(_ context.Context, mg xpresource.Managed) ( return managed.ExternalUpdate{}, nil } -func (n *noForkAsyncExternal) Delete(ctx context.Context, mg xpresource.Managed) error { +func (n *noForkAsyncExternal) Delete(_ context.Context, mg xpresource.Managed) error { if !n.opTracker.LastOperation.MarkStart("delete") { return errors.Errorf("%s operation that started at %s is still running", n.opTracker.LastOperation.Type, n.opTracker.LastOperation.StartTime().String()) } diff --git a/pkg/controller/nofork_store.go b/pkg/controller/nofork_store.go index dfcdd5ca..4ec2e082 100644 --- a/pkg/controller/nofork_store.go +++ b/pkg/controller/nofork_store.go @@ -21,7 +21,6 @@ type AsyncTracker struct { LastOperation *terraform.Operation logger logging.Logger mu *sync.Mutex - tfID string tfState *tfsdk.InstanceState // lifecycle of certain external resources are bound to a parent resource's // lifecycle, and they cannot be deleted without actually deleting