Skip to content

Commit bfebcdb

Browse files
apply format rules
1 parent 9ee5d72 commit bfebcdb

File tree

3 files changed

+922
-939
lines changed

3 files changed

+922
-939
lines changed

minikube/lib/memory.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import (
44
"k8s.io/minikube/pkg/minikube/machine"
55
)
66

7-
87
var NoLimit = "no-limit"
98
var Max = "max"
109

1110
// MemoryInfo holds system and container memory information
1211
type MemoryInfo struct {
13-
SystemMemory int
12+
SystemMemory int
1413
}
1514

1615
// GetMemoryLimits returns the amount of memory allocated to the system and container
@@ -24,9 +23,8 @@ func GetMemoryLimit() (*MemoryInfo, error) {
2423

2524
// Subtract 1gb for overhead
2625
memInfo := &MemoryInfo{
27-
SystemMemory: int(info.Memory) - 1024,
26+
SystemMemory: int(info.Memory) - 1024,
2827
}
2928

3029
return memInfo, nil
3130
}
32-

minikube/resource_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,4 +471,4 @@ func initialiseMinikubeClient(d *schema.ResourceData, m interface{}) (lib.Cluste
471471
})
472472

473473
return clusterClient, nil
474-
}
474+
}

0 commit comments

Comments
 (0)