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:
		@@ -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)
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user