mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #92689 from chendave/fix_testcase
Fix the nits found in the testcases of `PodTopologySpread`
This commit is contained in:
commit
86096addb1
@ -1488,7 +1488,7 @@ func TestMultipleConstraints(t *testing.T) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
// 1. to fulfil "zone" constraint, incoming pod can be placed on zone2 (node-x or node-y)
|
// 1. to fulfil "zone" constraint, incoming pod can be placed on zone2 (node-x or node-y)
|
||||||
// 2. to fulfil "node" constraint, incoming pod can be placed on node-b or node-x
|
// 2. to fulfil "node" constraint, incoming pod can be placed on node-a, node-b or node-x
|
||||||
// intersection of (1) and (2) returns node-x
|
// intersection of (1) and (2) returns node-x
|
||||||
name: "Constraints hold different labelSelectors, spreads = [1/0, 1/0/0/1]",
|
name: "Constraints hold different labelSelectors, spreads = [1/0, 1/0/0/1]",
|
||||||
pod: st.MakePod().Name("p").Label("foo", "").Label("bar", "").
|
pod: st.MakePod().Name("p").Label("foo", "").Label("bar", "").
|
||||||
|
Loading…
Reference in New Issue
Block a user