Merge pull request #3840 from brendandburns/api2
Add NodeSelector to the replication controller tests.
This commit is contained in:
@@ -83,6 +83,9 @@ func newReplicationController(replicas int) api.ReplicationController {
|
|||||||
Image: "foo/bar",
|
Image: "foo/bar",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
NodeSelector: map[string]string{
|
||||||
|
"baz": "blah",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -209,6 +212,9 @@ func TestCreateReplica(t *testing.T) {
|
|||||||
Image: "foo/bar",
|
Image: "foo/bar",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
NodeSelector: map[string]string{
|
||||||
|
"foo": "bar",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user