Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update access point root directory name to use PV name #448

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
wongma7 marked this conversation as resolved.
Show resolved Hide resolved
rootDir := basePath + "/" + rootDirName

accessPointsOptions.Gid = int64(gid)
Expand Down