@@ -110,7 +110,7 @@ func newControllerService(driverOptions *DriverOptions) controllerService {
110
110
}
111
111
}
112
112
func (d * controllerService ) CreateVolume (ctx context.Context , req * csi.CreateVolumeRequest ) (* csi.CreateVolumeResponse , error ) {
113
- klog .V (4 ).InfoS ("CreateVolume: called" , "args" , req )
113
+ klog .V (4 ).InfoS ("CreateVolume: called" , "args" , util . SanitizeRequest ( req ) )
114
114
volName := req .GetName ()
115
115
if len (volName ) == 0 {
116
116
return nil , status .Error (codes .InvalidArgument , "Volume name not provided" )
@@ -274,7 +274,7 @@ func (d *controllerService) CreateVolume(ctx context.Context, req *csi.CreateVol
274
274
}
275
275
276
276
func (d * controllerService ) DeleteVolume (ctx context.Context , req * csi.DeleteVolumeRequest ) (* csi.DeleteVolumeResponse , error ) {
277
- klog .V (4 ).InfoS ("DeleteVolume: called" , "args" , req )
277
+ klog .V (4 ).InfoS ("DeleteVolume: called" , "args" , util . SanitizeRequest ( req ) )
278
278
volumeID := req .GetVolumeId ()
279
279
if len (volumeID ) == 0 {
280
280
return nil , status .Error (codes .InvalidArgument , "Volume ID not provided" )
@@ -310,7 +310,7 @@ func (d *controllerService) ControllerModifyVolume(ctx context.Context, req *csi
310
310
}
311
311
312
312
func (d * controllerService ) ControllerGetCapabilities (ctx context.Context , req * csi.ControllerGetCapabilitiesRequest ) (* csi.ControllerGetCapabilitiesResponse , error ) {
313
- klog .V (4 ).InfoS ("ControllerGetCapabilities: called" , "args" , req )
313
+ klog .V (4 ).InfoS ("ControllerGetCapabilities: called" , "args" , util . SanitizeRequest ( req ) )
314
314
var caps []* csi.ControllerServiceCapability
315
315
for _ , cap := range controllerCaps {
316
316
c := & csi.ControllerServiceCapability {
@@ -326,17 +326,17 @@ func (d *controllerService) ControllerGetCapabilities(ctx context.Context, req *
326
326
}
327
327
328
328
func (d * controllerService ) GetCapacity (ctx context.Context , req * csi.GetCapacityRequest ) (* csi.GetCapacityResponse , error ) {
329
- klog .V (4 ).InfoS ("GetCapacity: called" , "args" , req )
329
+ klog .V (4 ).InfoS ("GetCapacity: called" , "args" , util . SanitizeRequest ( req ) )
330
330
return nil , status .Error (codes .Unimplemented , "" )
331
331
}
332
332
333
333
func (d * controllerService ) ListVolumes (ctx context.Context , req * csi.ListVolumesRequest ) (* csi.ListVolumesResponse , error ) {
334
- klog .V (4 ).InfoS ("ListVolumes: called" , "args" , req )
334
+ klog .V (4 ).InfoS ("ListVolumes: called" , "args" , util . SanitizeRequest ( req ) )
335
335
return nil , status .Error (codes .Unimplemented , "" )
336
336
}
337
337
338
338
func (d * controllerService ) ValidateVolumeCapabilities (ctx context.Context , req * csi.ValidateVolumeCapabilitiesRequest ) (* csi.ValidateVolumeCapabilitiesResponse , error ) {
339
- klog .V (4 ).InfoS ("ValidateVolumeCapabilities: called" , "args" , req )
339
+ klog .V (4 ).InfoS ("ValidateVolumeCapabilities: called" , "args" , util . SanitizeRequest ( req ) )
340
340
volumeID := req .GetVolumeId ()
341
341
if len (volumeID ) == 0 {
342
342
return nil , status .Error (codes .InvalidArgument , "Volume ID not provided" )
@@ -403,7 +403,7 @@ func (d *controllerService) ListSnapshots(ctx context.Context, req *csi.ListSnap
403
403
}
404
404
405
405
func (d * controllerService ) ControllerExpandVolume (ctx context.Context , req * csi.ControllerExpandVolumeRequest ) (* csi.ControllerExpandVolumeResponse , error ) {
406
- klog .V (4 ).InfoS ("ControllerExpandVolume: called" , "args" , req )
406
+ klog .V (4 ).InfoS ("ControllerExpandVolume: called" , "args" , util . SanitizeRequest ( req ) )
407
407
volumeID := req .GetVolumeId ()
408
408
if len (volumeID ) == 0 {
409
409
return nil , status .Error (codes .InvalidArgument , "Volume ID not provided" )
0 commit comments