Skip to content

Commit f6f3738

Browse files
committed
kubeadm: don't check if image exists before pulling
Removed image existence as kubeadm may miss image tags if they're updated.
1 parent 9905a33 commit f6f3738

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cmd/kubeadm/app/preflight/checks.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -833,14 +833,6 @@ func (ImagePullCheck) Name() string {
833833
// Check pulls images required by kubeadm. This is a mutating check
834834
func (ipc ImagePullCheck) Check() (warnings, errorList []error) {
835835
for _, image := range ipc.imageList {
836-
ret, err := ipc.runtime.ImageExists(image)
837-
if ret && err == nil {
838-
klog.V(1).Infof("image exists: %s", image)
839-
continue
840-
}
841-
if err != nil {
842-
errorList = append(errorList, errors.Wrapf(err, "failed to check if image %s exists", image))
843-
}
844836
klog.V(1).Infof("pulling %s", image)
845837
if err := ipc.runtime.PullImage(image); err != nil {
846838
errorList = append(errorList, errors.Wrapf(err, "failed to pull image %s", image))

0 commit comments

Comments
 (0)