Modify the UT.

This commit is contained in:
Trung Minh Lai 2024-11-18 14:16:48 +07:00
parent 0ffca8bef8
commit 6482ae642f
1 changed files with 10 additions and 0 deletions

View File

@ -4290,6 +4290,16 @@ func TestTopologySpreadConstraints(t *testing.T) {
Volume: acidv1.Volume{
Size: "1G",
},
TopologySpreadConstraints: []v1.TopologySpreadConstraint{
{
MaxSkew: 1,
TopologyKey: "topology.kubernetes.io/zone",
WhenUnsatisfiable: v1.DoNotSchedule,
LabelSelector: &metav1.LabelSelector{
MatchLabels: cluster.labelsSet(true),
},
},
},
},
}