@@ -202,6 +202,9 @@ func (d *driver) UnprepareResourceClaims(ctx context.Context, claimRefs []kubele
202202 if done {
203203 results [claim .UID ] = err
204204 wg .Done ()
205+ if err != nil {
206+ klog .V (0 ).Infof ("Permanent error unpreparing devices for claim %v: %v" , claim .UID , err )
207+ }
205208 return nil
206209 }
207210 return fmt .Errorf ("%w" , err )
@@ -251,13 +254,14 @@ func (d *driver) nodePrepareResource(ctx context.Context, claim *resourceapi.Res
251254 Err : fmt .Errorf ("error preparing devices for claim %s/%s:%s: %w" , claim .Namespace , claim .Name , claim .UID , err ),
252255 }
253256 if isPermanentError (err ) {
254- klog .V ( 6 ). Infof ("Permanent error preparing devices for claim %v: %v" , claim .UID , err )
257+ klog .Infof ("Permanent error preparing devices for claim %v: %v" , claim .UID , err )
255258 return true , res
256259 }
257260 return false , res
258261 }
259262
260- klog .Infof ("prepared devices for claim '%s/%s:%s': %v" , claim .Namespace , claim .Name , claim .UID , devs )
263+ klog .V (1 ).Infof ("prepared devices for claim '%s/%s:%s': %v" , claim .Namespace , claim .Name , claim .UID , devs )
264+
261265 return true , kubeletplugin.PrepareResult {Devices : devs }
262266}
263267
@@ -272,7 +276,7 @@ func (d *driver) nodeUnprepareResource(ctx context.Context, claimRef kubeletplug
272276 return isPermanentError (err ), fmt .Errorf ("error unpreparing devices for claim '%v': %w" , claimRef .String (), err )
273277 }
274278
275- klog .Infof ("unprepared devices for claim '%v'" , claimRef .String ())
279+ klog .V ( 1 ). Infof ("Unprepared devices for claim '%v'" , claimRef .String ())
276280 return true , nil
277281}
278282
0 commit comments