const legacyContainerLogsDir … const legacyLogSuffix … const ext4MaxFileNameLen … // legacyLogSymlink composes the legacy container log path. It is only used for legacy cluster // logging support. func legacyLogSymlink(containerID string, containerName, podName, podNamespace string) string { … } // getContainerIDFromLegacyLogSymlink returns error if container Id cannot be parsed func getContainerIDFromLegacyLogSymlink(logSymlink string) (string, error) { … } func logSymlink(containerLogsDir, podFullName, containerName, containerID string) string { … }