Modify the UT.

This commit is contained in:
Trung Minh Lai 2024-11-18 14:16:48 +07:00 committed by laiminhtrung1997
parent 263242a5e1
commit 63f865776e
1 changed files with 10 additions and 0 deletions

View File

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