Skip to content

Commit 47f5406

Browse files
ensure quotes are escaped during build
1 parent dd3eb7e commit 47f5406

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

minikube/generator/schema_builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var updateFields = []string{
5858
var schemaOverrides map[string]SchemaOverride = map[string]SchemaOverride{
5959
"memory": {
6060
Default: "4g",
61-
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))",
61+
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))",
6262
Type: String,
6363
},
6464
"disk_size": {
@@ -70,7 +70,7 @@ var schemaOverrides map[string]SchemaOverride = map[string]SchemaOverride{
7070
},
7171
"cpus": {
7272
Default: "2",
73-
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)",
73+
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)",
7474
Type: String,
7575
},
7676
// Customize the description to be the fullset of drivers

minikube/generator/schema_builder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func TestOverride(t *testing.T) {
360360
assert.Equal(t, header+`
361361
"memory": {
362362
Type: schema.TypeString,
363-
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))",
363+
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))",
364364
365365
Optional: true,
366366
ForceNew: true,

0 commit comments

Comments
 (0)