intel / vck

Volume Controller for Kubernetes
https://ai.intel.com/kubernetes-volume-controller-kvc-data-management-tailored-for-machine-learning-workloads-in-kubernetes/
Apache License 2.0
67 stars 17 forks source link

Error when / is missing at the end of the s3 directory #39

Open dmsuehir opened 6 years ago

dmsuehir commented 6 years ago

If the sourceURL directory is missing a / at the end of the path, we get a minio client error message about needing a --recursive flag and it's not obvious what the problem is. Either adding the / to the end if it's a directory or giving a clearer error message would help.

$ kubectl logs kvc-resource-71fb9d16-4d5d-11e8-a4d9-0a580a480f75 
Added `s3` successfully.
mc: <ERROR> To copy a folder requires --recursive flag. Invalid arguments provided, please refer `mc <command> -h` for relevant documentation.