Merge pull request #109527 from navist2020/kubeadm/preflightError

Return preflightError if an error occurs when running the preflight
This commit is contained in:
Kubernetes Prow Robot 2022-05-04 01:29:04 -07:00 committed by GitHub
commit 74ec2dd197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1063,7 +1063,7 @@ func RunRootCheckOnly(ignorePreflightErrors sets.String) error {
func RunPullImagesCheck(execer utilsexec.Interface, cfg *kubeadmapi.InitConfiguration, ignorePreflightErrors sets.String) error {
containerRuntime, err := utilruntime.NewContainerRuntime(utilsexec.New(), cfg.NodeRegistration.CRISocket)
if err != nil {
return err
return &Error{Msg: err.Error()}
}
checks := []Checker{