Skip to content

Commit 7773301

Browse files
Modify the UT.
1 parent 794f6db commit 7773301

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/cluster/k8sres_test.go

+10
Original file line numberDiff line numberDiff line change
@@ -3905,6 +3905,16 @@ func TestTopologySpreadConstraints(t *testing.T) {
39053905
Volume: acidv1.Volume{
39063906
Size: "1G",
39073907
},
3908+
TopologySpreadConstraints: []v1.TopologySpreadConstraint{
3909+
{
3910+
MaxSkew: 1,
3911+
TopologyKey: "topology.kubernetes.io/zone",
3912+
WhenUnsatisfiable: v1.DoNotSchedule,
3913+
LabelSelector: &metav1.LabelSelector{
3914+
MatchLabels: cluster.labelsSet(true),
3915+
},
3916+
},
3917+
},
39083918
},
39093919
}
39103920

0 commit comments

Comments
 (0)