fix the double quotation problem in ConfigMapGenerator

This commit is contained in:
Jingfang Liu
2018-08-23 09:28:22 -07:00
parent ebf33964c7
commit 34169174a8
3 changed files with 7 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ BAR=baz
{
Name: "literalConfigMap",
DataSources: types.DataSources{
LiteralSources: []string{"a=x", "b=y"},
LiteralSources: []string{"a=x", "b=y", "c=\"Good Morning\"", "d=\"false\""},
},
},
},
@@ -120,6 +120,8 @@ BAR=baz
"data": map[string]interface{}{
"a": "x",
"b": "y",
"c": "Good Morning",
"d": "false",
},
}).SetBehavior(resource.BehaviorCreate),
},