Skip to content

Commit 2e53799

Browse files
authored
Merge pull request kubernetes#129483 from pacoxu/fix-no-sandbox
kubeadm: should not warn on non-detect sandbox image
2 parents 3a79d45 + 02fbcb4 commit 2e53799

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/kubeadm/app/util/runtime/runtime.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,5 +293,9 @@ func (runtime *CRIRuntime) SandboxImage() (string, error) {
293293
return "", errors.Wrap(err, "failed to unmarshal CRI info config")
294294
}
295295

296+
if c.SandboxImage == "" {
297+
return "", errors.New("no 'sandboxImage' field in CRI info config")
298+
}
299+
296300
return c.SandboxImage, nil
297301
}

0 commit comments

Comments
 (0)