mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #85994 from coderanger/patch-1
Tiny typo in a comment.
This commit is contained in:
commit
0d8b4b5df4
@ -212,7 +212,7 @@ func (m *kubeGenericRuntimeManager) startContainer(podSandboxID string, podSandb
|
||||
sandboxMeta.Namespace)
|
||||
containerLog := filepath.Join(podSandboxConfig.LogDirectory, containerConfig.LogPath)
|
||||
// only create legacy symlink if containerLog path exists (or the error is not IsNotExist).
|
||||
// Because if containerLog path does not exist, only dandling legacySymlink is created.
|
||||
// Because if containerLog path does not exist, only dangling legacySymlink is created.
|
||||
// This dangling legacySymlink is later removed by container gc, so it does not make sense
|
||||
// to create it in the first place. it happens when journald logging driver is used with docker.
|
||||
if _, err := m.osInterface.Stat(containerLog); !os.IsNotExist(err) {
|
||||
|
Loading…
Reference in New Issue
Block a user