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 8a5cf7b66f
commit 2f4bd13fe5

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)