Don't include port in config when not specified.
When no port is specified the flag default of "-1" is taken. Fixes #4305
This commit is contained in:
@@ -34,6 +34,7 @@ func TestGenerate(t *testing.T) {
|
||||
"name": "foo",
|
||||
"image": "someimage",
|
||||
"replicas": "1",
|
||||
"port": "-1",
|
||||
},
|
||||
expected: &api.ReplicationController{
|
||||
ObjectMeta: api.ObjectMeta{
|
||||
|
Reference in New Issue
Block a user