From 98b2749894231dcd1227c3c07b641dd64b2d2b24 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 21 Sep 2020 17:55:01 +0200 Subject: [PATCH] Do not create directory if not found --- provisioner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner.go b/provisioner.go index b3380e72..0afbbfe7 100644 --- a/provisioner.go +++ b/provisioner.go @@ -202,7 +202,7 @@ func (p *LocalPathProvisioner) Provision(opts pvController.ProvisionOptions) (*v } fs := v1.PersistentVolumeFilesystem - hostPathType := v1.HostPathDirectoryOrCreate + hostPathType := v1.HostPathDirectory return &v1.PersistentVolume{ ObjectMeta: metav1.ObjectMeta{ Name: name, -- GitLab