Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug_fix: updating the parseKernelVersion() function #30699

Merged
merged 1 commit into from
Mar 5, 2024

Commits on Mar 4, 2024

  1. bug_fix: updating the parseKernelVersion() function

    Previously, Cilium expects the kernel version to always have 3 digits.
    However, the kernel is perfectly allowed to have only 2 or even only 1 digit
    for the version number.
    https://github.com/torvalds/linux/blob/35a4474b5c3dd4315f72bd53e87b97f128d9bb3d/Makefile#L367
    
    This patch makes changes to the following :
    - cilium/pkg/version/version_unix.go - updated the parseKernelVersion() to
    handle single as well double digit kernel versions along with the standard
    kernel versioning.
    - cilium/pkg/version/version_unix_test.go - added additional test cases
    
    Fixes: cilium#30630
    
    Signed-off-by: MeherRushi <meherrushi2@gmail.com>
    MeherRushi committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    1129c33 View commit details
    Browse the repository at this point in the history