Skip to content

Commit c09b9c7

Browse files
Modify the UT.
1 parent 7f9d0a1 commit c09b9c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/cluster/k8sres_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4003,6 +4003,16 @@ func TestTopologySpreadConstraints(t *testing.T) {
40034003
Volume: acidv1.Volume{
40044004
Size: "1G",
40054005
},
4006+
TopologySpreadConstraints: []v1.TopologySpreadConstraint{
4007+
{
4008+
MaxSkew: 1,
4009+
TopologyKey: "topology.kubernetes.io/zone",
4010+
WhenUnsatisfiable: v1.DoNotSchedule,
4011+
LabelSelector: &metav1.LabelSelector{
4012+
MatchLabels: cluster.labelsSet(true),
4013+
},
4014+
},
4015+
},
40064016
},
40074017
}
40084018

0 commit comments

Comments
 (0)