From d7c404365a724d57913ad3d14634526a4328ed8e Mon Sep 17 00:00:00 2001 From: Roberto Santalla Date: Thu, 14 Sep 2023 17:03:27 +0200 Subject: [PATCH] e2e/fixtures: add http readiness probes to pods that serve http --- pkg/testutils/e2e/fixtures/fixtures.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/testutils/e2e/fixtures/fixtures.go b/pkg/testutils/e2e/fixtures/fixtures.go index ecdb7b2a..6d4dc07c 100644 --- a/pkg/testutils/e2e/fixtures/fixtures.go +++ b/pkg/testutils/e2e/fixtures/fixtures.go @@ -14,6 +14,7 @@ func BuildHttpbinPod() corev1.Pod { WithImage("kennethreitz/httpbin"). WithPullPolicy(corev1.PullIfNotPresent). WithPort("http", 80). + WithHTTPReadinessProbe(). Build() return builders.NewPodBuilder("httpbin"). @@ -83,10 +84,11 @@ func BuildPausedPod() corev1.Pod { // BuildNginxPod returns the definition of a Pod that runs Nginx func BuildNginxPod() corev1.Pod { - c := builders.NewContainerBuilder("busybox"). + c := builders.NewContainerBuilder("nginx"). WithImage("nginx"). WithPullPolicy(corev1.PullIfNotPresent). WithPort("http", 80). + WithHTTPReadinessProbe(). Build() return builders.NewPodBuilder("nginx").