diff --git a/provisioner.go b/provisioner.go index 55c5fc498a66c36f63296ae95766a9d5f0c90557..4b08d9618f55171f41332b517666e24949ca8838 100644 --- a/provisioner.go +++ b/provisioner.go @@ -213,7 +213,7 @@ func (p *LocalPathProvisioner) Provision(opts pvController.ProvisionOptions) (*v } fs := v1.PersistentVolumeFilesystem - hostPathType := v1.HostPathDirectory + hostPathType := v1.HostPathDirectoryOrCreate return &v1.PersistentVolume{ ObjectMeta: metav1.ObjectMeta{ Name: name,