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
|
|
@ -43,7 +43,7 @@ var _ = framework.IngressNginxDescribe("[Lua] dynamic configuration", func() {
|
|||
f := framework.NewDefaultFramework("dynamic-configuration")
|
||||
|
||||
ginkgo.BeforeEach(func() {
|
||||
f.NewEchoDeploymentWithReplicas(1)
|
||||
f.NewEchoDeployment()
|
||||
ensureIngress(f, "foo.com", framework.EchoService)
|
||||
})
|
||||
|
||||
|
|
@ -124,7 +124,10 @@ var _ = framework.IngressNginxDescribe("[Lua] dynamic configuration", func() {
|
|||
|
||||
ginkgo.It("handles endpoints only changes consistently (down scaling of replicas vs. empty service)", func() {
|
||||
deploymentName := "scalingecho"
|
||||
f.NewEchoDeploymentWithNameAndReplicas(deploymentName, 0)
|
||||
f.NewEchoDeployment(
|
||||
framework.WithDeploymentName(deploymentName),
|
||||
framework.WithDeploymentReplicas(0),
|
||||
)
|
||||
createIngress(f, "scaling.foo.com", deploymentName)
|
||||
|
||||
resp := f.HTTPTestClient().
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue