Allow empty value for env in kubectl run

Fixes #28734
This commit is contained in:
Davanum Srinivas
2016-07-09 21:56:05 -04:00
parent 7f528c67ca
commit ecda7c60c1
2 changed files with 9 additions and 4 deletions

View File

@@ -858,8 +858,13 @@ func TestParseEnv(t *testing.T) {
envArray: []string{
"WITH_OUT_VALUES=",
},
expected: []api.EnvVar{},
expectErr: true,
expected: []api.EnvVar{
{
Name: "WITH_OUT_VALUES",
Value: "",
},
},
expectErr: false,
test: "test case 3",
},
{