mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Switch hard error to a WARNING for kernel version check
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
925cb2be30
commit
fd06dcd604
@ -139,9 +139,8 @@ func (kl *Kubelet) getKubeletMappings() (uint32, uint32, error) {
|
|||||||
features.UserNamespacesSupport, err)
|
features.UserNamespacesSupport, err)
|
||||||
}
|
}
|
||||||
if kernelVersion != nil && !kernelVersion.AtLeast(version.MustParseGeneric(utilkernel.UserNamespacesSupportKernelVersion)) {
|
if kernelVersion != nil && !kernelVersion.AtLeast(version.MustParseGeneric(utilkernel.UserNamespacesSupportKernelVersion)) {
|
||||||
return 0, 0, fmt.Errorf(
|
klog.InfoS("WARNING: the kernel version is incompatible with the feature gate, which needs as a minimum kernel version",
|
||||||
"the kernel version (%s) is incompatible with the %s feature gate, which needs %s as a minimum kernel version",
|
"kernelVersion", kernelVersion, "feature", features.UserNamespacesSupport, "minKernelVersion", utilkernel.UserNamespacesSupportKernelVersion)
|
||||||
kernelVersion, features.UserNamespacesSupport, utilkernel.UserNamespacesSupportKernelVersion)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user