From f2e63ea1168555af7810cb9e188e4662078c2c1d Mon Sep 17 00:00:00 2001 From: Yusmen Zabanov Date: Fri, 20 Sep 2024 13:31:58 +0000 Subject: [PATCH] WIP --- .../controllers/services/instances/managed/controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/controllers/services/instances/managed/controller.go b/controllers/controllers/services/instances/managed/controller.go index 9a2e4afd5..f080638bf 100644 --- a/controllers/controllers/services/instances/managed/controller.go +++ b/controllers/controllers/services/instances/managed/controller.go @@ -282,7 +282,9 @@ func (r *Reconciler) finalizeCFServiceInstance( } if !isDeprovisionRequested(serviceInstance) { - deprovisionResponse, err := osbapiClient.Deprovision(ctx, osbapi.InstanceDeprovisionPayload{ + + var deprovisionResponse osbapi.ServiceInstanceOperationResponse + deprovisionResponse, err = osbapiClient.Deprovision(ctx, osbapi.InstanceDeprovisionPayload{ ID: serviceInstance.Name, InstanceDeprovisionRequest: osbapi.InstanceDeprovisionRequest{ ServiceId: serviceOffering.Spec.BrokerCatalog.ID,