Fix kubectl create secret/configmap to allow = values

This commit is contained in:
derekwaynecarr
2016-04-29 13:09:46 -04:00
parent c0bcc04b8e
commit 25ed62c3ea
4 changed files with 45 additions and 4 deletions

View File

@@ -91,6 +91,21 @@ func TestConfigMapGenerate(t *testing.T) {
},
expectErr: true,
},
{
params: map[string]interface{}{
"name": "foo",
"from-literal": []string{"key1==value1"},
},
expected: &api.ConfigMap{
ObjectMeta: api.ObjectMeta{
Name: "foo",
},
Data: map[string]string{
"key1": "=value1",
},
},
expectErr: false,
},
}
generator := ConfigMapGeneratorV1{}
for _, test := range tests {