mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
kubeadm: should not warn on non-detect sandbox image
This commit is contained in:
parent
8f8c94a04d
commit
02fbcb4e69
@ -293,5 +293,9 @@ func (runtime *CRIRuntime) SandboxImage() (string, error) {
|
|||||||
return "", errors.Wrap(err, "failed to unmarshal CRI info config")
|
return "", errors.Wrap(err, "failed to unmarshal CRI info config")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.SandboxImage == "" {
|
||||||
|
return "", errors.New("no 'sandboxImage' field in CRI info config")
|
||||||
|
}
|
||||||
|
|
||||||
return c.SandboxImage, nil
|
return c.SandboxImage, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user