Allow kubelet orphan cleanup to delete both files and empty directories as subpath mount points. A pod does not need to use a directory as a subpath, it can use a file (unix domain socket, pipe, ...) too. Therefore the cleanup should use `os.Remove` that deletes both files and empty directories.
11 KiB
11 KiB