mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
check for crictl executable only for CRI runtime
crictl is not used for docker runtime, so this check can be skipped when using docker.
This commit is contained in:
parent
e09be82ad0
commit
95eb821674
@ -967,11 +967,13 @@ func addCommonChecks(execer utilsexec.Interface, cfg kubeadmapi.CommonConfigurat
|
|||||||
|
|
||||||
// non-windows checks
|
// non-windows checks
|
||||||
if runtime.GOOS == "linux" {
|
if runtime.GOOS == "linux" {
|
||||||
|
if !isDocker {
|
||||||
|
checks = append(checks, InPathCheck{executable: "crictl", mandatory: true, exec: execer})
|
||||||
|
}
|
||||||
checks = append(checks,
|
checks = append(checks,
|
||||||
FileContentCheck{Path: bridgenf, Content: []byte{'1'}},
|
FileContentCheck{Path: bridgenf, Content: []byte{'1'}},
|
||||||
FileContentCheck{Path: ipv4Forward, Content: []byte{'1'}},
|
FileContentCheck{Path: ipv4Forward, Content: []byte{'1'}},
|
||||||
SwapCheck{},
|
SwapCheck{},
|
||||||
InPathCheck{executable: "crictl", mandatory: true, exec: execer},
|
|
||||||
InPathCheck{executable: "ip", mandatory: true, exec: execer},
|
InPathCheck{executable: "ip", mandatory: true, exec: execer},
|
||||||
InPathCheck{executable: "iptables", mandatory: true, exec: execer},
|
InPathCheck{executable: "iptables", mandatory: true, exec: execer},
|
||||||
InPathCheck{executable: "mount", mandatory: true, exec: execer},
|
InPathCheck{executable: "mount", mandatory: true, exec: execer},
|
||||||
|
Loading…
Reference in New Issue
Block a user