Skip to content

Commit

Permalink
Change to provisioned path #77
Browse files Browse the repository at this point in the history
  • Loading branch information
REBELinBLUE authored and yasker committed Mar 6, 2020
1 parent aeb0208 commit 655eac7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,11 @@ func (p *LocalPathProvisioner) Provision(opts pvController.ProvisionOptions) (*v
if err != nil {
return nil, err
}

name := opts.PVName
path := filepath.Join(basePath, name)
folderName := strings.Join([]string{name, opts.PVC.Namespace, opts.PVC.Name}, "_")

path := filepath.Join(basePath, folderName)
logrus.Infof("Creating volume %v at %v:%v", name, node.Name, path)

createCmdsForPath := []string{
Expand Down

0 comments on commit 655eac7

Please sign in to comment.