Skip to content

Commit c88aef2

Browse files
committed
Revert "Switch hard error to a WARNING for kernel version check"
This reverts commit fd06dcd. The revert is not to make it a hard error again, this revert is needed to revert cleanly the commit that added this as an error in the first place. Signed-off-by: Rodrigo Campos <[email protected]>
1 parent 88e9d8f commit c88aef2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/kubelet/kubelet_pods.go

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

0 commit comments

Comments
 (0)