Skip to content

Commit

Permalink
e2e: fix switch lb rule test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jul 25, 2023
1 parent 90c8305 commit d5a21ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/e2e/kube-ovn/switch_lb_rule/switch_lb_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,9 @@ var _ = framework.Describe("[group:slr]", func() {
labels := map[string]string{"app": label}
ginkgo.By("Creating statefulset " + stsName + " with subnet " + subnetName)
sts := framework.MakeStatefulSet(stsName, stsSvcName, int32(replicas), labels, framework.AgnhostImage)
pool := framework.RandomIPs(overlaySubnetCidr, ";", replicas)
ginkgo.By("Creating sts " + stsName + " with ip pool " + pool)
ginkgo.By("Creating sts " + stsName)
sts.Spec.Template.Annotations = map[string]string{
util.LogicalSwitchAnnotation: subnetName,
util.IpPoolAnnotation: pool,
}
portStr := strconv.Itoa(80)
webServerCmd := []string{"/agnhost", "netexec", "--http-port", portStr}
Expand Down

0 comments on commit d5a21ad

Please sign in to comment.