Fix comments

This commit is contained in:
inosato 2022-09-18 12:51:03 +09:00
parent 3b95d3b076
commit 7dc1f5e30b
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ func WriteTmpFile(fs utilfs.Filesystem, path string, data []byte) (tmpPath strin
}
}()
// Name() will be an absolute path when using utilfs.DefaultFS, because os.CreateTemp passes
// Name() will be an absolute path when using utilfs.DefaultFS, because ioutil.TempFile passes
// an absolute path to os.Open, and we ensure similar behavior in utilfs.FakeFS for testing.
tmpPath = tmpFile.Name()

View File

@ -405,7 +405,7 @@ func (m *kubeGenericRuntimeManager) makeMounts(opts *kubecontainer.RunContainerO
} else {
fs.Close()
// Chmod is needed because os.WriteFile() ends up calling
// Chmod is needed because os.Create() ends up calling
// open(2) to create the file, so the final mode used is "mode &
// ~umask". But we want to make sure the specified mode is used
// in the file no matter what the umask is.