Skip to content

Commit 2f4bd13

Browse files
committed
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.
1 parent 8a5cf7b commit 2f4bd13

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/kubeadm/app/preflight/checks.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,6 @@ func (ipc ImagePullCheck) Check() (warnings, errorList []error) {
863863
klog.V(1).Infof("image exists: %s", image)
864864
continue
865865
}
866-
if err != nil {
867-
errorList = append(errorList, errors.Wrapf(err, "failed to check if image %s exists", image))
868-
}
869866
fallthrough // Proceed with pulling the image if it does not exist
870867
case v1.PullAlways:
871868
klog.V(1).Infof("pulling: %s", image)

0 commit comments

Comments
 (0)