use functional options to reduce number of methods creating an EchoDeployment (#8199)

This commit is contained in:
Damien Mathieu 2022-02-02 14:12:22 +01:00 committed by GitHub
parent 0f464333a9
commit dcd552ceb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 75 additions and 51 deletions

View file

@ -34,7 +34,7 @@ var _ = framework.IngressNginxDescribe("[Flag] disable-catch-all", func() {
f := framework.NewDefaultFramework("disabled-catch-all")
ginkgo.BeforeEach(func() {
f.NewEchoDeploymentWithReplicas(1)
f.NewEchoDeployment(framework.WithDeploymentReplicas(1))
err := f.UpdateIngressControllerDeployment(func(deployment *appsv1.Deployment) error {
args := deployment.Spec.Template.Spec.Containers[0].Args