-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #30630 Signed-off-by: MeherRushi <meherrushi2@gmail.com>
- Loading branch information
1 parent
29a7918
commit eb73d92
Showing
2 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters