remove ioutil in kubelet

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-04-27 19:03:20 +08:00
parent 537941765f
commit 4fac7486d4
8 changed files with 20 additions and 22 deletions

View File

@@ -80,7 +80,7 @@ const (
// Get a list of pods that have data directories.
func (kl *Kubelet) listPodsFromDisk() ([]types.UID, error) {
podInfos, err := ioutil.ReadDir(kl.getPodsDir())
podInfos, err := os.ReadDir(kl.getPodsDir())
if err != nil {
return nil, err
}