test: fix gofmt

This commit is contained in:
andyzhangx 2022-08-13 13:19:22 +00:00
parent 290ef792c1
commit a88b70388e
2 changed files with 8 additions and 7 deletions

View File

@ -364,8 +364,8 @@ func getInternalMountPath(workingMountDir string, vol *nfsVolume) string {
// Get internal path where the volume is created // Get internal path where the volume is created
// The reason why the internal path is "workingDir/subDir/subDir" is because: // The reason why the internal path is "workingDir/subDir/subDir" is because:
// * the semantic is actually "workingDir/volId/subDir" and volId == subDir. // - the semantic is actually "workingDir/volId/subDir" and volId == subDir.
// * we need a mount directory per volId because you can have multiple // - we need a mount directory per volId because you can have multiple
// CreateVolume calls in parallel and they may use the same underlying share. // CreateVolume calls in parallel and they may use the same underlying share.
// Instead of refcounting how many CreateVolume calls are using the same // Instead of refcounting how many CreateVolume calls are using the same
// share, it's simpler to just do a mount per request. // share, it's simpler to just do a mount per request.
@ -385,6 +385,7 @@ func getVolumeIDFromNfsVol(vol *nfsVolume) string {
// Given a CSI volume id, return a nfsVolume // Given a CSI volume id, return a nfsVolume
// sample volume Id: // sample volume Id:
//
// new volumeID: // new volumeID:
// nfs-server.default.svc.cluster.local#share#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64 // nfs-server.default.svc.cluster.local#share#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
// nfs-server.default.svc.cluster.local#share#subdir#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64 // nfs-server.default.svc.cluster.local#share#subdir#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64