Skip to content

Commit a07d3c4

Browse files
authored
Merge pull request kubernetes#124835 from dims/switch-hard-error-to-a-warning-forkernel-version-check
Switch hard error to a WARNING for kernel version check
2 parents 1243983 + fd06dcd commit a07d3c4

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)