@@ -28,6 +28,7 @@ import (
28
28
29
29
"github.com/container-storage-interface/spec/lib/go/csi"
30
30
"github.com/kubernetes-sigs/aws-efs-csi-driver/pkg/cloud"
31
+ "github.com/kubernetes-sigs/aws-efs-csi-driver/pkg/util"
31
32
"google.golang.org/grpc/codes"
32
33
"google.golang.org/grpc/status"
33
34
corev1 "k8s.io/api/core/v1"
@@ -54,7 +55,7 @@ func (d *Driver) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolu
54
55
}
55
56
56
57
func (d * Driver ) NodePublishVolume (ctx context.Context , req * csi.NodePublishVolumeRequest ) (* csi.NodePublishVolumeResponse , error ) {
57
- klog .V (4 ).Infof ("NodePublishVolume: called with args %+v" , req )
58
+ klog .V (4 ).Infof ("NodePublishVolume: called with args %+v" , util . SanitizeRequest ( * req ) )
58
59
mountOptions := []string {}
59
60
60
61
target := req .GetTargetPath ()
@@ -216,7 +217,7 @@ func (d *Driver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolu
216
217
}
217
218
218
219
func (d * Driver ) NodeUnpublishVolume (ctx context.Context , req * csi.NodeUnpublishVolumeRequest ) (* csi.NodeUnpublishVolumeResponse , error ) {
219
- klog .V (4 ).Infof ("NodeUnpublishVolume: called with args %+v" , req )
220
+ klog .V (4 ).Infof ("NodeUnpublishVolume: called with args %+v" , util . SanitizeRequest ( * req ) )
220
221
221
222
target := req .GetTargetPath ()
222
223
if len (target ) == 0 {
@@ -266,7 +267,7 @@ func (d *Driver) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublish
266
267
}
267
268
268
269
func (d * Driver ) NodeGetVolumeStats (ctx context.Context , req * csi.NodeGetVolumeStatsRequest ) (* csi.NodeGetVolumeStatsResponse , error ) {
269
- klog .V (4 ).Infof ("NodeGetVolumeStats: called with args %+v" , req )
270
+ klog .V (4 ).Infof ("NodeGetVolumeStats: called with args %+v" , util . SanitizeRequest ( * req ) )
270
271
271
272
volId := req .GetVolumeId ()
272
273
if volId == "" {
@@ -303,7 +304,7 @@ func (d *Driver) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolume
303
304
}
304
305
305
306
func (d * Driver ) NodeGetCapabilities (ctx context.Context , req * csi.NodeGetCapabilitiesRequest ) (* csi.NodeGetCapabilitiesResponse , error ) {
306
- klog .V (4 ).Infof ("NodeGetCapabilities: called with args %+v" , req )
307
+ klog .V (4 ).Infof ("NodeGetCapabilities: called with args %+v" , util . SanitizeRequest ( * req ) )
307
308
var caps []* csi.NodeServiceCapability
308
309
for _ , cap := range d .nodeCaps {
309
310
c := & csi.NodeServiceCapability {
@@ -319,7 +320,7 @@ func (d *Driver) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabi
319
320
}
320
321
321
322
func (d * Driver ) NodeGetInfo (ctx context.Context , req * csi.NodeGetInfoRequest ) (* csi.NodeGetInfoResponse , error ) {
322
- klog .V (4 ).Infof ("NodeGetInfo: called with args %+v" , req )
323
+ klog .V (4 ).Infof ("NodeGetInfo: called with args %+v" , util . SanitizeRequest ( * req ) )
323
324
324
325
return & csi.NodeGetInfoResponse {
325
326
NodeId : d .nodeID ,
0 commit comments