Skip to content

Commit

Permalink
Merge pull request #651 from dereknola/fix_e2e
Browse files Browse the repository at this point in the history
Update e2e test images, fix test timeouts
  • Loading branch information
k8s-ci-robot authored Oct 25, 2024
2 parents fa0192f + 9dca940 commit c0fa2d1
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions pkg/e2e/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ func (cl *Cluster) StartApiServer() {
"--net=host",
"--pid=host",
cl.HyperkubeImage,
"/hyperkube", "apiserver",
"kube-apiserver",
"--insecure-bind-address=0.0.0.0",
"--service-cluster-ip-range=10.0.0.1/24",
"--etcd_servers=http://127.0.0.1:2379",
"--etcd-servers=http://127.0.0.1:2379",
"--v=2")
}

Expand Down
1 change: 0 additions & 1 deletion pkg/e2e/dns/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func (kd *KubeDNS) Start(name string, args ...string) {

args = append(
args,
"--logtostderr",
"--dns-port", "10053",
"--kubecfg-file", fr.Path("test/e2e/cluster/config"))

Expand Down
8 changes: 5 additions & 3 deletions pkg/e2e/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ limitations under the License.
package e2e

const (
etcdImage = "quay.io/coreos/etcd:v3.0.14"
hyperkubeImage = "registry.k8s.io/hyperkube:v1.5.1"
dnsmasqImage = "registry.k8s.io/k8s-dns-dnsmasq-amd64:1.14.5"
etcdImage = "quay.io/coreos/etcd:v3.5.16"
// TODO remove hyperkube, it is deprecated
hyperkubeImage = "registry.k8s.io/hyperkube:v1.18.20"
// TODO Fix kubedns e2e test that uses this image, stops working after 1.14.10
dnsmasqImage = "registry.k8s.io/k8s-dns-dnsmasq-amd64:1.14.10"
)

type Options struct {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/cluster/manifests/addon-manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"containers": [
{
"name": "kube-addon-manager",
"image": "registry.k8s.io/kube-addon-manager-amd64:v6.1",
"image": "registry.k8s.io/kube-addon-manager-amd64:v9.1.1",
"resources": {
"requests": {
"cpu": "5m",
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/cluster/manifests/master.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"containers": [
{
"name": "controller-manager",
"image": "registry.k8s.io/hyperkube-amd64:v1.5.1",
"image": "registry.k8s.io/hyperkube-amd64:v1.18.20",
"command": [
"/hyperkube",
"controller-manager",
Expand All @@ -30,7 +30,7 @@
},
{
"name": "scheduler",
"image": "registry.k8s.io/hyperkube-amd64:v1.5.1",
"image": "registry.k8s.io/hyperkube-amd64:v1.18.20",
"command": [
"/hyperkube",
"scheduler",
Expand All @@ -41,7 +41,7 @@
},
{
"name": "setup",
"image": "registry.k8s.io/hyperkube-amd64:v1.5.1",
"image": "registry.k8s.io/hyperkube-amd64:v1.18.20",
"command": [
"/setup-files.sh",
"IP:10.0.0.1,DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.cluster.local"
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/kubedns/kubedns.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var _ = Describe("kube-dns", func() {
}

return fmt.Errorf("expected %v, but got %v", expected, names)
}).Should(om.Succeed())
}, "5s", "1s").Should(om.Succeed())
})

It("should stop", func() {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/sidecar/Dockerfile.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# limitations under the License.
#
# Builds the docker container for the e2e test.
FROM registry.k8s.io/kube-dnsmasq-amd64:1.4
FROM alpine:3.20
MAINTAINER Bowei Du <[email protected]>

COPY bin/amd64/sidecar /sidecar
COPY bin/amd64/sidecar-e2e /sidecar-e2e
RUN apk update && apk add curl bind-tools
RUN apk update && apk add curl bind-tools dnsmasq

ENTRYPOINT ["/sidecar-e2e", "-mode", "test"]

0 comments on commit c0fa2d1

Please sign in to comment.