@@ -191,7 +191,7 @@ func (r *ServiceInstanceReconciler) createInstance(ctx context.Context, smClient
191191 k8sNameLabel : []string {serviceInstance .Name },
192192 clusterIDLabel : []string {r .Config .ClusterID },
193193 },
194- }, serviceInstance .Spec .ServiceOfferingName , serviceInstance .Spec .ServicePlanName , nil , serviceInstance .Spec .UserInfo . Username )
194+ }, serviceInstance .Spec .ServiceOfferingName , serviceInstance .Spec .ServicePlanName , nil , buildUserInfo ( serviceInstance .Spec .UserInfo , log ) )
195195
196196 if provisionErr != nil {
197197 log .Error (provisionErr , "failed to create service instance" , "serviceOfferingName" , serviceInstance .Spec .ServiceOfferingName ,
@@ -235,7 +235,7 @@ func (r *ServiceInstanceReconciler) updateInstance(ctx context.Context, smClient
235235 Name : serviceInstance .Spec .ExternalName ,
236236 ServicePlanID : serviceInstance .Spec .ServicePlanID ,
237237 Parameters : instanceParameters ,
238- }, serviceInstance .Spec .ServiceOfferingName , serviceInstance .Spec .ServicePlanName , nil , serviceInstance .Spec .UserInfo . Username )
238+ }, serviceInstance .Spec .ServiceOfferingName , serviceInstance .Spec .ServicePlanName , nil , buildUserInfo ( serviceInstance .Spec .UserInfo , log ) )
239239 if err != nil {
240240 log .Error (err , fmt .Sprintf ("failed to update service instance with ID %s" , serviceInstance .Status .InstanceID ))
241241 if isTransientError (err , log ) {
@@ -281,7 +281,7 @@ func (r *ServiceInstanceReconciler) deleteInstance(ctx context.Context, smClient
281281 }
282282
283283 log .Info (fmt .Sprintf ("Deleting instance with id %v from SM" , serviceInstance .Status .InstanceID ))
284- operationURL , deprovisionErr := smClient .Deprovision (serviceInstance .Status .InstanceID , nil , serviceInstance .Spec .UserInfo . Username )
284+ operationURL , deprovisionErr := smClient .Deprovision (serviceInstance .Status .InstanceID , nil , buildUserInfo ( serviceInstance .Spec .UserInfo , log ) )
285285 if deprovisionErr != nil {
286286 if isTransientError (deprovisionErr , log ) {
287287 return r .markAsTransientError (ctx , smTypes .DELETE , deprovisionErr .Error (), serviceInstance , log )
0 commit comments