opencredo / kubefuse

Kubernetes as a FUSE Filesystem
https://opencredo.com/blogs/introducing-kubefuse-file-system-kubernetes/
Apache License 2.0
266 stars 16 forks source link

Show correct file sizes #2

Closed bspaans closed 8 years ago

bspaans commented 8 years ago

At the moment all files are listed with a size of 50000 bytes. This is a dirty hack and should be resolved. 0 size files broke a lot of tools on my mac unfortunately and I haven't found a way around that so the only thing I can think of at this point is to actually go and fetch the resources to calculate the size correctly.

This is a bit expensive because it has to run the kubectl behind the scenes for each file, but we can cache the results for a little while to alleviate this.