Skip to content

Commit c9f690d

Browse files
authored
Merge pull request kubernetes#85170 from timyinshi/logSymlink
modify dockerID to containerID
2 parents c577031 + e9edfbc commit c9f690d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/kubelet/kuberuntime/legacy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ func legacyLogSymlink(containerID string, containerName, podName, podNamespace s
4444
containerName, containerID)
4545
}
4646

47-
func logSymlink(containerLogsDir, podFullName, containerName, dockerID string) string {
47+
func logSymlink(containerLogsDir, podFullName, containerName, containerID string) string {
4848
suffix := fmt.Sprintf(".%s", legacyLogSuffix)
49-
logPath := fmt.Sprintf("%s_%s-%s", podFullName, containerName, dockerID)
49+
logPath := fmt.Sprintf("%s_%s-%s", podFullName, containerName, containerID)
5050
// Length of a filename cannot exceed 255 characters in ext4 on Linux.
5151
if len(logPath) > ext4MaxFileNameLen-len(suffix) {
5252
logPath = logPath[:ext4MaxFileNameLen-len(suffix)]

0 commit comments

Comments
 (0)