@@ -110,7 +110,7 @@ func newControllerService(driverOptions *DriverOptions) controllerService {
110110 }
111111}
112112func (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 ) )
114114 volName := req .GetName ()
115115 if len (volName ) == 0 {
116116 return nil , status .Error (codes .InvalidArgument , "Volume name not provided" )
@@ -274,7 +274,7 @@ func (d *controllerService) CreateVolume(ctx context.Context, req *csi.CreateVol
274274}
275275
276276func (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 ) )
278278 volumeID := req .GetVolumeId ()
279279 if len (volumeID ) == 0 {
280280 return nil , status .Error (codes .InvalidArgument , "Volume ID not provided" )
@@ -310,7 +310,7 @@ func (d *controllerService) ControllerModifyVolume(ctx context.Context, req *csi
310310}
311311
312312func (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 ) )
314314 var caps []* csi.ControllerServiceCapability
315315 for _ , cap := range controllerCaps {
316316 c := & csi.ControllerServiceCapability {
@@ -326,17 +326,17 @@ func (d *controllerService) ControllerGetCapabilities(ctx context.Context, req *
326326}
327327
328328func (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 ) )
330330 return nil , status .Error (codes .Unimplemented , "" )
331331}
332332
333333func (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 ) )
335335 return nil , status .Error (codes .Unimplemented , "" )
336336}
337337
338338func (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 ) )
340340 volumeID := req .GetVolumeId ()
341341 if len (volumeID ) == 0 {
342342 return nil , status .Error (codes .InvalidArgument , "Volume ID not provided" )
@@ -403,7 +403,7 @@ func (d *controllerService) ListSnapshots(ctx context.Context, req *csi.ListSnap
403403}
404404
405405func (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 ) )
407407 volumeID := req .GetVolumeId ()
408408 if len (volumeID ) == 0 {
409409 return nil , status .Error (codes .InvalidArgument , "Volume ID not provided" )
0 commit comments