Skip to content

Commit 8fdb23c

Browse files
authored
Merge pull request #7082 from priyawadhwa/ignore-memory
Fix bug where global config memory was ignored
2 parents 07e8420 + dd70782 commit 8fdb23c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)