diff --git a/pkg/driver/controller.go b/pkg/driver/controller.go index 732658586..f8787513f 100644 --- a/pkg/driver/controller.go +++ b/pkg/driver/controller.go @@ -23,7 +23,6 @@ import ( "strings" "github.com/container-storage-interface/spec/lib/go/csi" - "github.com/google/uuid" "github.com/kubernetes-sigs/aws-efs-csi-driver/pkg/cloud" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -40,7 +39,6 @@ const ( ProvisioningMode = "provisioningMode" DefaultGidMin = 50000 DefaultGidMax = 7000000 - RootDirPrefix = "efs-csi-ap" TempMountPathPrefix = "/var/lib/csi/pv" DefaultTagKey = "efs.csi.aws.com/cluster" DefaultTagValue = "true" @@ -179,8 +177,7 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) return nil, err } - gidStr := strconv.Itoa(gid) - rootDirName := RootDirPrefix + "-" + gidStr + "-" + uuid.New().String() + rootDirName := volName rootDir := basePath + "/" + rootDirName accessPointsOptions.Gid = int64(gid)