Skip to content

Commit

Permalink
Merge pull request #7082 from priyawadhwa/ignore-memory
Browse files Browse the repository at this point in the history
Fix bug where global config memory was ignored
  • Loading branch information
tstromberg authored Mar 18, 2020
2 parents 07e8420 + dd70782 commit 8fdb23c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,9 @@ func memoryLimits(drvName string) (int, int, error) {

// suggestMemoryAllocation calculates the default memory footprint in MB
func suggestMemoryAllocation(sysLimit int, containerLimit int) int {
if mem := viper.GetInt(memory); mem != 0 {
return mem
}
fallback := 2200
maximum := 6000

Expand Down

0 comments on commit 8fdb23c

Please sign in to comment.