Skip to content

Commit

Permalink
e2e/fixtures: add http readiness probes to pods that serve http
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiamoe committed Sep 14, 2023
1 parent 9205e19 commit d7c4043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/testutils/e2e/fixtures/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func BuildHttpbinPod() corev1.Pod {
WithImage("kennethreitz/httpbin").
WithPullPolicy(corev1.PullIfNotPresent).
WithPort("http", 80).
WithHTTPReadinessProbe().
Build()

return builders.NewPodBuilder("httpbin").
Expand Down Expand Up @@ -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").
Expand Down

0 comments on commit d7c4043

Please sign in to comment.