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

Make sed work #4

Open bspaans opened 8 years ago

bspaans commented 8 years ago

Modifying a file with sed doesn't work. Either in place or using redirection:

sed -e 's/  replicas: 1/  replicas: 2/g' testmount/default/rc/postgres/yaml > testmount/default/rc/postgres/yaml

I have a feeling that instead of truncating the file and overwriting it sed tries to create a new file and move it in its place. Haven't looked into this though, but it would be nice to get this working.