appscode / osm

🚚 ☁️ Object Store Manipulator - curl for cloud storage
Apache License 2.0
168 stars 9 forks source link

osm stat command return incorrect URL for minio backend #39

Open hossainemruz opened 5 years ago

hossainemruz commented 5 years ago

Problem: I have a Minio server running on https://192.168.99.100:32733. It has a file deployment.yaml in bucket named external-bucket. When I run osm stat command to view the file statistics, it returns incorrect url for the file.

Observed behavior:

$ osm stat  -c external-bucket deployment.yaml
Found item deployment.yaml
URL = s3://external-bucket/deployment.yaml
Size = 1.6 kB
Last modified = 2018-11-30 10:29:35 +0000 UTC
Etag = 63607e8dfdfabe32dc55bb3511327406

Expected behaviour: osm should be aware of endpoint. It should return URL = https://192.168.99.100:32733/external-bucket/deployment.yaml