Skip to content

Commit dd70782

Browse files
author
Priya Wadhwa
committed
If memory is specified in config, suggest that for memory allocation
1 parent 07e8420 commit dd70782

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: cmd/minikube/cmd/start.go

+3
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,9 @@ func memoryLimits(drvName string) (int, int, error) {
666666

667667
// suggestMemoryAllocation calculates the default memory footprint in MB
668668
func suggestMemoryAllocation(sysLimit int, containerLimit int) int {
669+
if mem := viper.GetInt(memory); mem != 0 {
670+
return mem
671+
}
669672
fallback := 2200
670673
maximum := 6000
671674

0 commit comments

Comments
 (0)