Skip to content

Commit fd06dcd

Browse files
committed
Switch hard error to a WARNING for kernel version check
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 925cb2b commit fd06dcd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/kubelet/kubelet_pods.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ func (kl *Kubelet) getKubeletMappings() (uint32, uint32, error) {
139139
features.UserNamespacesSupport, err)
140140
}
141141
if kernelVersion != nil && !kernelVersion.AtLeast(version.MustParseGeneric(utilkernel.UserNamespacesSupportKernelVersion)) {
142-
return 0, 0, fmt.Errorf(
143-
"the kernel version (%s) is incompatible with the %s feature gate, which needs %s as a minimum kernel version",
144-
kernelVersion, features.UserNamespacesSupport, utilkernel.UserNamespacesSupportKernelVersion)
142+
klog.InfoS("WARNING: the kernel version is incompatible with the feature gate, which needs as a minimum kernel version",
143+
"kernelVersion", kernelVersion, "feature", features.UserNamespacesSupport, "minKernelVersion", utilkernel.UserNamespacesSupportKernelVersion)
145144
}
146145
}
147146

0 commit comments

Comments
 (0)