use functional options to reduce number of methods creating an EchoDeployment (#8199)
This commit is contained in:
parent
0f464333a9
commit
dcd552ceb5
20 changed files with 75 additions and 51 deletions
|
|
@ -32,7 +32,7 @@ var _ = framework.DescribeSetting("[Load Balancer] EWMA", func() {
|
|||
f := framework.NewDefaultFramework("ewma")
|
||||
|
||||
ginkgo.BeforeEach(func() {
|
||||
f.NewEchoDeploymentWithReplicas(3)
|
||||
f.NewEchoDeployment(framework.WithDeploymentReplicas(3))
|
||||
f.SetNginxConfigMapData(map[string]string{
|
||||
"worker-processes": "2",
|
||||
"load-balance": "ewma"},
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ var _ = framework.DescribeSetting("[Load Balancer] round-robin", func() {
|
|||
f := framework.NewDefaultFramework("round-robin")
|
||||
|
||||
ginkgo.BeforeEach(func() {
|
||||
f.NewEchoDeploymentWithReplicas(3)
|
||||
f.NewEchoDeployment(framework.WithDeploymentReplicas(3))
|
||||
f.UpdateNginxConfigMapData("worker-processes", "1")
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue