Skip to content

Commit

Permalink
Modify the UT.
Browse files Browse the repository at this point in the history
  • Loading branch information
laiminhtrung1997 committed Feb 25, 2025
1 parent eaada84 commit debb5a0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/cluster/k8sres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4003,6 +4003,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),
},
},
},
},
}

Expand Down

0 comments on commit debb5a0

Please sign in to comment.