提交 e87400db 编写于 作者: M Medya Gh

addres review comments

上级 b71a7dce
......@@ -826,7 +826,7 @@ func validateMemoryHardLimit(drvName string) {
s, c, err := memoryLimits(drvName)
if err != nil {
glog.Warningf("Unable to query memory limits: %v", err)
out.T(out.Conflict, "Failed to verify system memory limits.")
out.WarningT("Failed to verify system memory limits.")
}
if s < 2200 {
out.WarningT("Your system has only {{.memory_amount}}MB memory. This might not work minimum required is 2000MB.", out.V{"memory_amount": s})
......
......@@ -30,6 +30,7 @@ import (
"k8s.io/minikube/pkg/minikube/out/register"
)
// HostInfo holds information on the user's machine
type HostInfo struct {
Memory int64
CPUs int
......@@ -103,7 +104,7 @@ func logRemoteOsRelease(r command.Runner) {
var cachedSystemMemoryLimit *mem.VirtualMemoryStat
var cachedSystemMemoryErr *error
// cachedSysMemLimit will return a chaced limit for the system's virtual memory.
// cachedSysMemLimit will return a cached limit for the system's virtual memory.
func cachedSysMemLimit() (*mem.VirtualMemoryStat, error) {
if cachedSystemMemoryLimit == nil {
v, err := mem.VirtualMemory()
......@@ -116,7 +117,7 @@ func cachedSysMemLimit() (*mem.VirtualMemoryStat, error) {
var cachedDiskInfo *disk.UsageStat
var cachedDiskInfoeErr *error
// cachedSysMemLimit will return a cached disk usage info
// cachedDisInfo will return a cached disk usage info
func cachedDisInfo() (disk.UsageStat, error) {
if cachedDiskInfo == nil {
d, err := disk.Usage("/")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册