Skip to content

Commit

Permalink
Merge pull request #422 from kbasv/delete_AP_directory
Browse files Browse the repository at this point in the history
Add `iam` mount option while deleting Access Point root directory
  • Loading branch information
k8s-ci-robot authored Apr 23, 2021
2 parents db05508 + bd86996 commit 89cfdd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (d *Driver) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest)
}

//Mount File System at it root and delete access point root directory
mountOptions := []string{"tls"}
mountOptions := []string{"tls", "iam"}
target := TempMountPathPrefix + "/" + accessPointId
if err := d.mounter.MakeDir(target); err != nil {
return nil, status.Errorf(codes.Internal, "Could not create dir %q: %v", target, err)
Expand Down

0 comments on commit 89cfdd8

Please sign in to comment.