kubeadm: remove misplaced error during image pull

During preflight when an image is pulled, if the sandbox image
check returns an error, the same error later blocks the actual
image pull.
This commit is contained in:
Lubomir I. Ivanov 2025-01-13 19:29:37 +02:00
parent e616858316
commit 8ed6e5c88d

View File

@ -863,9 +863,6 @@ func (ipc ImagePullCheck) Check() (warnings, errorList []error) {
klog.V(1).Infof("image exists: %s", image)
continue
}
if err != nil {
errorList = append(errorList, errors.Wrapf(err, "failed to check if image %s exists", image))
}
fallthrough // Proceed with pulling the image if it does not exist
case v1.PullAlways:
klog.V(1).Infof("pulling: %s", image)