Commit Graph

5 Commits

Author SHA1 Message Date
Giuseppe Scrivano
705242e2af
kubelet: remove superfluous function
the ensureDirectory seems to be just a wrapper around MkdirAll.

Since MkdirAll doesn't treat an existing directory as an error, there is no need of the extra stat() syscall that was previously performed.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2022-07-18 17:08:27 +02:00
Yu-Ju Hong
16e7c6ee17 Close the file before renaming in FileStore
Also change the unit test to use a real file system to detect errors
like this.
2017-11-03 10:24:49 -07:00
Yu-Ju Hong
4b5a3ee2e5 Address more comments 2017-10-25 10:07:32 -07:00
Yu-Ju Hong
5cbca87add Address comments, fix lint failures, and bazel complaints 2017-10-19 15:18:30 -07:00
Yu-Ju Hong
5169cc85cf Add a file store utility package in kubelet
More and more components checkpoints (i.e., persist their states) in
kubelet. Refurbish and move the implementation in dockershim to a
utility package to improve code reusability.
2017-10-17 10:36:33 -07:00