diff --git a/provisioner.go b/provisioner.go index 9265ba98e2fc4b2d52a966f38a6ea8a3411dcb76..74c5c86645f4ab209a52aa55845e51cb0ada067b 100644 --- a/provisioner.go +++ b/provisioner.go @@ -661,6 +661,14 @@ func createPersistentVolumeSource(volumeType string, path string) v1.PersistentV Path: path, }, } + case "hostpath": + hostPathType := v1.HostPathDirectoryOrCreate + pvs = v1.PersistentVolumeSource{ + HostPath: &v1.HostPathVolumeSource{ + Path: path, + Type: &hostPathType, + }, + } default: hostPathType := v1.HostPathDirectoryOrCreate pvs = v1.PersistentVolumeSource{