Skip to content

Commit

Permalink
Merge pull request #110840 from aojea/echoserver
Browse files Browse the repository at this point in the history
Remove e2e  echoserver image and replace it by agnost
  • Loading branch information
k8s-ci-robot committed Jun 30, 2022
2 parents 9827435 + 092f7f6 commit d2cea94
Show file tree
Hide file tree
Showing 20 changed files with 56 additions and 781 deletions.
9 changes: 8 additions & 1 deletion test/e2e/framework/ingress/ingress_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1104,8 +1104,15 @@ func generateBacksideHTTPSServiceSpec() *v1.Service {

func generateBacksideHTTPSDeploymentSpec() *appsv1.Deployment {
labels := map[string]string{"app": "echoheaders-https"}
d := e2edeployment.NewDeployment("echoheaders-https", 0, labels, "echoheaders-https", imageutils.GetE2EImage(imageutils.EchoServer), appsv1.RollingUpdateDeploymentStrategyType)
d := e2edeployment.NewDeployment("echoheaders-https", 0, labels, "echoheaders-https", imageutils.GetE2EImage(imageutils.Agnhost), appsv1.RollingUpdateDeploymentStrategyType)
d.Spec.Replicas = nil
d.Spec.Template.Spec.Containers[0].Command = []string{
"/agnhost",
"netexec",
"--http-port=8443",
"--tls-cert-file=/localhost.crt",
"--tls-private-key-file=/localhost.key",
}
d.Spec.Template.Spec.Containers[0].Ports = []v1.ContainerPort{{
ContainerPort: 8443,
Name: "echo-443",
Expand Down
9 changes: 7 additions & 2 deletions test/e2e/network/scale/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
clientset "k8s.io/client-go/kubernetes"
imageutils "k8s.io/kubernetes/test/utils/image"

"k8s.io/kubernetes/test/e2e/framework"
e2edeployment "k8s.io/kubernetes/test/e2e/framework/deployment"
e2eingress "k8s.io/kubernetes/test/e2e/framework/ingress"
"k8s.io/kubernetes/test/e2e/framework/providers/gce"
imageutils "k8s.io/kubernetes/test/utils/image"
)

const (
Expand Down Expand Up @@ -448,7 +448,12 @@ func generateScaleTestServiceSpec(suffix string) *v1.Service {
func generateScaleTestBackendDeploymentSpec(numReplicas int32) *appsv1.Deployment {
d := e2edeployment.NewDeployment(
scaleTestBackendName, numReplicas, scaleTestLabels, scaleTestBackendName,
imageutils.GetE2EImage(imageutils.EchoServer), appsv1.RollingUpdateDeploymentStrategyType)
imageutils.GetE2EImage(imageutils.Agnhost), appsv1.RollingUpdateDeploymentStrategyType)
d.Spec.Template.Spec.Containers[0].Command = []string{
"/agnhost",
"netexec",
"--http-port=8080",
}
d.Spec.Template.Spec.Containers[0].Ports = []v1.ContainerPort{{ContainerPort: 8080}}
d.Spec.Template.Spec.Containers[0].ReadinessProbe = &v1.Probe{
ProbeHandler: v1.ProbeHandler{
Expand Down
8 changes: 7 additions & 1 deletion test/e2e/testing-manifests/ingress/gce/static-ip-2/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ spec:
spec:
containers:
- name: echoheaders-https
image: registry.k8s.io/e2e-test-images/echoserver:2.3
image: registry.k8s.io/e2e-test-images/agnhost:2.39
command:
- /agnhost
- netexec
- --http-port=8080
- --tls-cert-file=/localhost.crt
- --tls-private-key-file=/localhost.key
ports:
- containerPort: 8080
6 changes: 5 additions & 1 deletion test/e2e/testing-manifests/ingress/http/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ spec:
spec:
containers:
- name: echoheaders
image: registry.k8s.io/e2e-test-images/echoserver:2.3
image: registry.k8s.io/e2e-test-images/agnhost:2.39
command:
- /agnhost
- netexec
- --http-port=8080
ports:
- containerPort: 8080
readinessProbe:
Expand Down
8 changes: 7 additions & 1 deletion test/e2e/testing-manifests/ingress/http2/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ spec:
spec:
containers:
- name: echoheaders
image: registry.k8s.io/e2e-test-images/echoserver:2.3
image: registry.k8s.io/e2e-test-images/agnhost:2.39
command:
- /agnhost
- netexec
- --http-port=8443
- --tls-cert-file=/localhost.crt
- --tls-private-key-file=/localhost.key
ports:
- containerPort: 8443
8 changes: 7 additions & 1 deletion test/e2e/testing-manifests/ingress/multiple-certs/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ spec:
spec:
containers:
- name: echoheaders-https
image: registry.k8s.io/e2e-test-images/echoserver:2.3
image: registry.k8s.io/e2e-test-images/agnhost:2.39
command:
- /agnhost
- netexec
- --http-port=8080
- --tls-cert-file=/localhost.crt
- --tls-private-key-file=/localhost.key
ports:
- containerPort: 8080
8 changes: 7 additions & 1 deletion test/e2e/testing-manifests/ingress/pre-shared-cert/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ spec:
spec:
containers:
- name: echoheaders-https
image: registry.k8s.io/e2e-test-images/echoserver:2.3
image: registry.k8s.io/e2e-test-images/agnhost:2.39
command:
- /agnhost
- netexec
- --http-port=8080
- --tls-cert-file=/localhost.crt
- --tls-private-key-file=/localhost.key
ports:
- containerPort: 8080
8 changes: 7 additions & 1 deletion test/e2e/testing-manifests/ingress/static-ip/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ spec:
spec:
containers:
- name: echoheaders-https
image: registry.k8s.io/e2e-test-images/echoserver:2.3
image: registry.k8s.io/e2e-test-images/agnhost:2.39
command:
- /agnhost
- netexec
- --http-port=8080
- --tls-cert-file=/localhost.crt
- --tls-private-key-file=/localhost.key
ports:
- containerPort: 8080
8 changes: 0 additions & 8 deletions test/images/echoserver/BASEIMAGE

This file was deleted.

29 changes: 0 additions & 29 deletions test/images/echoserver/Dockerfile

This file was deleted.

42 changes: 0 additions & 42 deletions test/images/echoserver/Dockerfile_windows

This file was deleted.

2 changes: 0 additions & 2 deletions test/images/echoserver/OWNERS

This file was deleted.

11 changes: 0 additions & 11 deletions test/images/echoserver/README.md

This file was deleted.

1 change: 0 additions & 1 deletion test/images/echoserver/VERSION

This file was deleted.

26 changes: 0 additions & 26 deletions test/images/echoserver/install-deps.sh

This file was deleted.

105 changes: 0 additions & 105 deletions test/images/echoserver/nginx.conf

This file was deleted.

35 changes: 0 additions & 35 deletions test/images/echoserver/run.sh

This file was deleted.

0 comments on commit d2cea94

Please sign in to comment.