You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Uses the gopsutil cpu package to count the number of physical cpu cores
589
+
ci, err:=cpu.Counts(false)
590
+
iferr!=nil {
591
+
glog.Warningf("Unable to get CPU info: %v", err)
592
+
} else {
593
+
cpuCount=ci
594
+
}
595
+
} else {
596
+
cpuCount=viper.GetInt(cpus)
597
+
}
598
+
ifcpuCount<constants.MinimumCPUS {
599
+
exit.UsageT("Requested cpu count {{.requested_cpus}} is less than the minimum allowed of {{.minimum_cpus}}", out.V{"requested_cpus": cpuCount, "minimum_cpus": constants.MinimumCPUS})
600
+
}
601
+
585
602
// check that kubeadm extra args contain only whitelisted parameters
0 commit comments