Skip to content

Commit

Permalink
Merge pull request #4254 from aledbf/update-kind
Browse files Browse the repository at this point in the history
Update kind to 0.4.0
  • Loading branch information
k8s-ci-robot authored Jun 29, 2019
2 parents 7c6ffea + 975a635 commit ca2a09c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
27 changes: 15 additions & 12 deletions test/e2e-prow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,36 +35,39 @@ RUN mkdir -p /go/src/k8s.io/kubernetes \
# - graphviz package for graphing profiles
# - bc for shell to junit
# - rpm for building RPMs with Bazel
RUN apt-get update && \
apt-get install -y bc \
rpm && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y \
bc \
rpm \
&& rm -rf /var/lib/apt/lists/*

ARG K8S_RELEASE
ARG ETCD_VERSION

RUN wget https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl \
RUN curl -sSL https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl

RUN wget https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kube-apiserver -O /usr/local/bin/kube-apiserver \
RUN curl -sSL https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kube-apiserver -o /usr/local/bin/kube-apiserver \
&& chmod +x /usr/local/bin/kube-apiserver

RUN curl -L https://storage.googleapis.com/etcd/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \
RUN curl -sSL https://storage.googleapis.com/etcd/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \
&& mkdir -p /tmp/etcd-download \
&& tar xzvf /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -C /tmp/etcd-download --strip-components=1 \
&& cp /tmp/etcd-download/etcd /usr/local/bin \
&& rm -rf /tmp/etcd-download

RUN curl -sSL https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64 -o /usr/local/bin/kind \
&& chmod +x /usr/local/bin/kind

# install go
ENV GO_VERSION 1.12.6
ENV GO_TARBALL "go${GO_VERSION}.linux-amd64.tar.gz"
RUN wget -q "https://storage.googleapis.com/golang/${GO_TARBALL}" && \
tar xzf "${GO_TARBALL}" -C /usr/local && \
rm "${GO_TARBALL}"
RUN wget -q "https://storage.googleapis.com/golang/${GO_TARBALL}" \
&& tar xzf "${GO_TARBALL}" -C /usr/local \
&& rm "${GO_TARBALL}"

RUN go get github.com/onsi/ginkgo/ginkgo \
RUN go get github.com/onsi/ginkgo/ginkgo \
&& go get golang.org/x/lint/golint \
&& GO111MODULE="on" go get -u sigs.k8s.io/kind@master \
&& rm -rf /go/src/github.com

ENV KUBEBUILDER_ASSETS /usr/local/bin
10 changes: 5 additions & 5 deletions test/e2e/kind.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind: Config
apiVersion: kind.sigs.k8s.io/v1alpha2
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
replicas: 2
- role: control-plane
- role: worker
- role: worker

0 comments on commit ca2a09c

Please sign in to comment.