From 75658724aabcb1aff36cc3ea193f4939fced5f71 Mon Sep 17 00:00:00 2001 From: Michael Gasch <15986659+embano1@users.noreply.github.com> Date: Fri, 8 Jul 2022 11:14:21 +0200 Subject: [PATCH] chore: Fix E2E tests when using upstream vcsim Closes: #453 Signed-off-by: Michael Gasch <15986659+embano1@users.noreply.github.com> --- test/e2e/util.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/e2e/util.go b/test/e2e/util.go index c779e9694..16a389bef 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -38,7 +38,6 @@ const ( user = "user" password = "password" jobNameKey = "job-name" - defaultVcsimImage = "vmware/vcsim:latest" ) type envConfig struct { @@ -492,11 +491,6 @@ func newSimulator(namespace, image string) (*appsv1.Deployment, *corev1.Service) l := map[string]string{ "app": vcsim, } - args := []string{"-l", ":8989"} - if image == defaultVcsimImage { - // vmware/vcsim image is built differently, it does not use ko. Therefore, the entrypoint is different. - args = append([]string{"/vcsim"}, args...) - } sim := appsv1.Deployment{ ObjectMeta: metav1.ObjectMeta{ @@ -517,7 +511,7 @@ func newSimulator(namespace, image string) (*appsv1.Deployment, *corev1.Service) Containers: []corev1.Container{{ Name: vcsim, Image: image, - Args: args, + Args: []string{"-l", ":8989"}, ImagePullPolicy: corev1.PullIfNotPresent, Ports: []corev1.ContainerPort{ {