mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #121207 from cyclinder/sysctl_log_level
kubelet/sysctl: update log level
This commit is contained in:
commit
3aec335a8f
@ -96,7 +96,7 @@ func getSafeSysctlAllowlist(getVersion func() (*version.Version, error)) []strin
|
||||
if kernelVersion != nil && kernelVersion.AtLeast(version.MustParseGeneric(sc.kernel)) {
|
||||
safeSysctlAllowlist = append(safeSysctlAllowlist, sc.name)
|
||||
} else {
|
||||
klog.ErrorS(nil, "kernel version is too small, dropping the sysctl from safe sysctl list", "kernelVersion", kernelVersion, "sysctl", sc.name)
|
||||
klog.InfoS("kernel version is too old, dropping the sysctl from safe sysctl list", "kernelVersion", kernelVersion, "sysctl", sc.name)
|
||||
}
|
||||
}
|
||||
return safeSysctlAllowlist
|
||||
|
Loading…
Reference in New Issue
Block a user