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
|
|
@ -31,8 +31,8 @@ var _ = framework.IngressNginxDescribe("single ingress - multiple hosts", func()
|
|||
f := framework.NewDefaultFramework("simh")
|
||||
pathprefix := networking.PathTypePrefix
|
||||
ginkgo.BeforeEach(func() {
|
||||
f.NewEchoDeploymentWithNameAndReplicas("first-service", 1)
|
||||
f.NewEchoDeploymentWithNameAndReplicas("second-service", 1)
|
||||
f.NewEchoDeployment(framework.WithDeploymentName("first-service"))
|
||||
f.NewEchoDeployment(framework.WithDeploymentName("second-service"))
|
||||
})
|
||||
|
||||
ginkgo.It("should set the correct $service_name NGINX variable", func() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue