mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
kubelet/sysctl: update log level
This commit is contained in:
parent
b40f1c00e2
commit
10151a5e38
@ -82,7 +82,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