@@ -25,6 +25,7 @@ import (
25
25
26
26
"github.com/container-storage-interface/spec/lib/go/csi"
27
27
"github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes"
28
+ "github.com/kubernetes-csi/csi-lib-utils/protosanitizer"
28
29
"golang.org/x/net/context"
29
30
"google.golang.org/grpc/codes"
30
31
"google.golang.org/grpc/status"
@@ -47,7 +48,7 @@ type nodeServer struct {
47
48
}
48
49
49
50
func (ns * nodeServer ) NodePublishVolume (ctx context.Context , req * csi.NodePublishVolumeRequest ) (* csi.NodePublishVolumeResponse , error ) {
50
- klog .V (4 ).Infof ("NodePublishVolume: called with args %+v" , * req )
51
+ klog .V (4 ).Infof ("NodePublishVolume: called with args %+v" , protosanitizer . StripSecrets ( * req ) )
51
52
52
53
volumeID := req .GetVolumeId ()
53
54
source := req .GetStagingTargetPath ()
@@ -226,7 +227,7 @@ func nodePublishEphermeral(req *csi.NodePublishVolumeRequest, ns *nodeServer) (*
226
227
}
227
228
228
229
func nodePublishVolumeForBlock (req * csi.NodePublishVolumeRequest , ns * nodeServer , mountOptions []string ) (* csi.NodePublishVolumeResponse , error ) {
229
- klog .V (4 ).Infof ("NodePublishVolumeBlock: called with args %+v" , * req )
230
+ klog .V (4 ).Infof ("NodePublishVolumeBlock: called with args %+v" , protosanitizer . StripSecrets ( * req ) )
230
231
231
232
volumeID := req .GetVolumeId ()
232
233
targetPath := req .GetTargetPath ()
@@ -265,7 +266,7 @@ func nodePublishVolumeForBlock(req *csi.NodePublishVolumeRequest, ns *nodeServer
265
266
}
266
267
267
268
func (ns * nodeServer ) NodeUnpublishVolume (ctx context.Context , req * csi.NodeUnpublishVolumeRequest ) (* csi.NodeUnpublishVolumeResponse , error ) {
268
- klog .V (4 ).Infof ("NodeUnPublishVolume: called with args %+v" , * req )
269
+ klog .V (4 ).Infof ("NodeUnPublishVolume: called with args %+v" , protosanitizer . StripSecrets ( * req ) )
269
270
270
271
volumeID := req .GetVolumeId ()
271
272
targetPath := req .GetTargetPath ()
@@ -348,7 +349,7 @@ func nodeUnpublishEphermeral(req *csi.NodeUnpublishVolumeRequest, ns *nodeServer
348
349
}
349
350
350
351
func (ns * nodeServer ) NodeStageVolume (ctx context.Context , req * csi.NodeStageVolumeRequest ) (* csi.NodeStageVolumeResponse , error ) {
351
- klog .V (4 ).Infof ("NodeStageVolume: called with args %+v" , * req )
352
+ klog .V (4 ).Infof ("NodeStageVolume: called with args %+v" , protosanitizer . StripSecrets ( * req ) )
352
353
353
354
stagingTarget := req .GetStagingTargetPath ()
354
355
volumeCapability := req .GetVolumeCapability ()
@@ -414,7 +415,7 @@ func (ns *nodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStageVol
414
415
}
415
416
416
417
func (ns * nodeServer ) NodeUnstageVolume (ctx context.Context , req * csi.NodeUnstageVolumeRequest ) (* csi.NodeUnstageVolumeResponse , error ) {
417
- klog .V (4 ).Infof ("NodeUnstageVolume: called with args %+v" , * req )
418
+ klog .V (4 ).Infof ("NodeUnstageVolume: called with args %+v" , protosanitizer . StripSecrets ( * req ) )
418
419
419
420
volumeID := req .GetVolumeId ()
420
421
if len (volumeID ) == 0 {
@@ -474,7 +475,7 @@ func (ns *nodeServer) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetC
474
475
}
475
476
476
477
func (ns * nodeServer ) NodeGetVolumeStats (_ context.Context , req * csi.NodeGetVolumeStatsRequest ) (* csi.NodeGetVolumeStatsResponse , error ) {
477
- klog .V (4 ).Infof ("NodeGetVolumeStats: called with args %+v" , * req )
478
+ klog .V (4 ).Infof ("NodeGetVolumeStats: called with args %+v" , protosanitizer . StripSecrets ( * req ) )
478
479
479
480
volumeID := req .GetVolumeId ()
480
481
if len (volumeID ) == 0 {
@@ -518,7 +519,7 @@ func (ns *nodeServer) NodeGetVolumeStats(_ context.Context, req *csi.NodeGetVolu
518
519
}
519
520
520
521
func (ns * nodeServer ) NodeExpandVolume (ctx context.Context , req * csi.NodeExpandVolumeRequest ) (* csi.NodeExpandVolumeResponse , error ) {
521
- klog .V (4 ).Infof ("NodeExpandVolume: called with args %+v" , * req )
522
+ klog .V (4 ).Infof ("NodeExpandVolume: called with args %+v" , protosanitizer . StripSecrets ( * req ) )
522
523
523
524
volumeID := req .GetVolumeId ()
524
525
if len (volumeID ) == 0 {
0 commit comments