Skip to content

Commit

Permalink
Merge pull request #448 from kbasv/apRename
Browse files Browse the repository at this point in the history
Update access point root directory name to use PV name
  • Loading branch information
wongma7 committed Jun 2, 2021
2 parents 6efa40e + b9bb3e3 commit c1e3f9f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c1e3f9f

Please sign in to comment.