Merge pull request #124835 from dims/switch-hard-error-to-a-warning-forkernel-version-check

Switch hard error to a WARNING for kernel version check
This commit is contained in:
Kubernetes Prow Robot 2024-05-12 19:31:45 -07:00 committed by GitHub
commit a07d3c49b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
} }
} }