Skip to content

Commit 0f3383c

Browse files
revert cpu type temporarily
1 parent 47f5406 commit 0f3383c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

minikube/generator/schema_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var schemaOverrides map[string]SchemaOverride = map[string]SchemaOverride{
7171
"cpus": {
7272
Default: "2",
7373
Description: "Number of CPUs allocated to Kubernetes. Use \\\"max\\\" to use the maximum number of CPUs. Use \\\"no-limit\\\" to not specify a limit (Docker/Podman only)",
74-
Type: String,
74+
Type: Int,
7575
},
7676
// Customize the description to be the fullset of drivers
7777
"driver": {

minikube/schema_cluster.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ var (
191191
},
192192

193193
"cpus": {
194-
Type: schema.TypeString,
195-
Description: "Number of CPUs allocated to Kubernetes. Use "max" to use the maximum number of CPUs. Use "no-limit" to not specify a limit (Docker/Podman only)",
194+
Type: schema.TypeInt,
195+
Description: "Number of CPUs allocated to Kubernetes. Use \"max\" to use the maximum number of CPUs. Use \"no-limit\" to not specify a limit (Docker/Podman only)",
196196

197197
Optional: true,
198198
ForceNew: true,
199199

200-
Default: "2",
200+
Default: 2,
201201
},
202202

203203
"cri_socket": {
@@ -668,7 +668,7 @@ var (
668668

669669
"memory": {
670670
Type: schema.TypeString,
671-
Description: "Amount of RAM to allocate to Kubernetes (format: <number>[<unit>], where unit = b, k, m or g). Use "max" to use the maximum amount of memory. Use "no-limit" to not specify a limit (Docker/Podman only))",
671+
Description: "Amount of RAM to allocate to Kubernetes (format: <number>[<unit>], where unit = b, k, m or g). Use \"max\" to use the maximum amount of memory. Use \"no-limit\" to not specify a limit (Docker/Podman only))",
672672

673673
Optional: true,
674674
ForceNew: true,

0 commit comments

Comments
 (0)