mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Add NodeSelector to the replication controller tests.
This commit is contained in:
parent
c3da4f0b19
commit
92d65b7c65
@ -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",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user