Merge pull request #129450 from carlory/kubeadm-exec-check

kubeadm: update preflight check
This commit is contained in:
Kubernetes Prow Robot 2025-01-18 06:38:34 -08:00 committed by GitHub
commit fcc1e9002a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,8 +82,11 @@ func addExecChecks(checks []Checker, execer utilsexec.Interface, k8sVersion stri
} }
} }
checks = append(checks, // kubelet requires losetup to be present in PATH for block volume support since 1.9.0.
InPathCheck{executable: "mount", mandatory: true, exec: execer}, // (ref: https://github.com/kubernetes/kubernetes/pull/51494)
InPathCheck{executable: "nsenter", mandatory: true, exec: execer}) checks = append(checks, InPathCheck{executable: "losetup", mandatory: true, exec: execer})
// kubelet requires mount to be present in PATH for in-tree volume plugins.
checks = append(checks, InPathCheck{executable: "mount", mandatory: true, exec: execer})
return checks return checks
} }