@@ -199,6 +199,9 @@ func (d *driver) UnprepareResourceClaims(ctx context.Context, claimRefs []kubele
199199 if done {
200200 results [claim .UID ] = err
201201 wg .Done ()
202+ if err != nil {
203+ klog .V (0 ).Infof ("Permanent error unpreparing devices for claim %v: %v" , claim .UID , err )
204+ }
202205 return nil
203206 }
204207 return fmt .Errorf ("%w" , err )
@@ -248,13 +251,14 @@ func (d *driver) nodePrepareResource(ctx context.Context, claim *resourceapi.Res
248251 Err : fmt .Errorf ("error preparing devices for claim %s/%s:%s: %w" , claim .Namespace , claim .Name , claim .UID , err ),
249252 }
250253 if isPermanentError (err ) {
251- klog .V (6 ).Infof ("Permanent error preparing devices for claim %v: %v" , claim .UID , err )
254+ klog .V (0 ).Infof ("Permanent error preparing devices for claim %v: %v" , claim .UID , err )
252255 return true , res
253256 }
254257 return false , res
255258 }
256259
257- klog .Infof ("prepared devices for claim '%s/%s:%s': %v" , claim .Namespace , claim .Name , claim .UID , devs )
260+ klog .V (1 ).Infof ("prepared devices for claim '%s/%s:%s': %v" , claim .Namespace , claim .Name , claim .UID , devs )
261+
258262 return true , kubeletplugin.PrepareResult {Devices : devs }
259263}
260264
@@ -269,7 +273,7 @@ func (d *driver) nodeUnprepareResource(ctx context.Context, claimRef kubeletplug
269273 return isPermanentError (err ), fmt .Errorf ("error unpreparing devices for claim '%v': %w" , claimRef .String (), err )
270274 }
271275
272- klog .Infof ("unprepared devices for claim '%v'" , claimRef .String ())
276+ klog .V ( 1 ). Infof ("Unprepared devices for claim '%v'" , claimRef .String ())
273277 return true , nil
274278}
275279
0 commit comments