Tag Archives: kubernetes

WTF?! #1: Kubernetes’ rbd_util.go

https://github.com/kubernetes/kubernetes/blob/release-1.4/pkg/volume/rbd/rbd_util.go#L57

po := path.Join(sys_path, name, "pool")
img := path.Join(sys_path, name, "name")
exe := exec.New()
out, err := exe.Command("cat", po, img).CombinedOutput()

Does Kubernetes not have code review? Fork/exec’ing cat to read content from files? This is embarrassing bad.