Skip to content

Commit

Permalink
Modify the UT.
Browse files Browse the repository at this point in the history
  • Loading branch information
laiminhtrung1997 committed Nov 18, 2024
1 parent 794f6db commit 7773301
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 @@ -3905,6 +3905,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 7773301

Please sign in to comment.