Skip to content

Commit

Permalink
Update to Kubernetes 1.11
Browse files Browse the repository at this point in the history
Now we have >= 1.11 support across cloud providers, we can finally update
client-go to provide extra features.

This updated client-go to 8.0.0 this includes Status API on the clients
so we can take advantage of it - which should ideally give us a performance boost.

*Please note:* this will mean that our required Kubernetes version will now be 1.11+,
I think this is acceptable now it has penetration across cloud providers, but
feedback appreciated.

Also took the opportunity to upgrade logrus, errors, testify as well.
  • Loading branch information
markmandel committed Dec 18, 2018
1 parent 7a3341b commit 4a936cf
Show file tree
Hide file tree
Showing 2,214 changed files with 58,865 additions and 80,806 deletions.
124 changes: 91 additions & 33 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 19 additions & 7 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,43 @@

[[constraint]]
name = "github.com/sirupsen/logrus"
version = "1.0.3"
version = "1.2.0"

[[constraint]]
name = "github.com/spf13/viper"
version = "1.1.0"
version = "1.3.1"

[[constraint]]
name = "k8s.io/client-go"
version = "7.0.0"
version = "8.0.0"

[[constraint]]
name = "k8s.io/apiextensions-apiserver"
version = "kubernetes-1.10.4"
version = "kubernetes-1.11.5"

[[constraint]]
name = "k8s.io/apimachinery"
version = "kubernetes-1.10.4"
version = "kubernetes-1.11.5"

[[constraint]]
name = "k8s.io/api"
version = "kubernetes-1.10.4"
version = "kubernetes-1.11.5"

#
# client-go dependencies
#

[[override]]
name = "github.com/json-iterator/go"
version = "1.1.5"

#
# / client-go dependencies
#

[[constraint]]
name = "github.com/stretchr/testify"
version = "1.1.4"
version = "1.2.2"

[[constraint]]
name = "google.golang.org/grpc"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For more details on why this project was written, read the
[announcement blog post](https://cloudplatform.googleblog.com/2018/03/introducing-Agones-open-source-multiplayer-dedicated-game-server-hosting-built-on-Kubernetes.html).

## Requirements
- Kubernetes cluster version 1.9+
- Kubernetes cluster version 1.11+
- [Minikube](https://github.com/kubernetes/minikube), [Google Kubernetes Engine](https://cloud.google.com/kubernetes-engine/) and [Azure Kubernetes Service](https://azure.microsoft.com/en-us/services/kubernetes-service/) have been tested
- If you are creating and managing your own Kubernetes cluster, the
[MutatingAdmissionWebhook](https://kubernetes.io/docs/admin/admission-controllers/#mutatingadmissionwebhook-beta-in-19), and
Expand Down
2 changes: 0 additions & 2 deletions build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@ This will setup a [Minikube](https://github.com/kubernetes/minikube) cluster, ru
Because Minikube runs on a virtualisation layer on the host, some of the standard build and development Make targets
need to be replaced by Minikube specific targets.

> We recommend installing version [0.29.0 of minikube](https://github.com/kubernetes/minikube/releases/tag/v0.29.0).
First, [install Minikube](https://github.com/kubernetes/minikube#installation), which may also require you to install
a virtualisation solution, such as [VirtualBox](https://www.virtualbox.org) as well.
Check the [Building on Different Platforms](#building-on-different-platforms) above for details on what virtualisation
Expand Down
6 changes: 3 additions & 3 deletions build/build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ ENV PATH /usr/local/go/bin:/go/bin:/opt/google-cloud-sdk/bin:$PATH
# RUN gcloud components update
RUN gcloud components update

# install kubectl without gcloud as we want the last version
ENV KUBECTL_VER 1.10.0
# overwrite kubectl as we want a specific version
ENV KUBECTL_VER 1.11.5
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VER}/bin/linux/amd64/kubectl && \
chmod go+rx ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl
Expand Down Expand Up @@ -107,7 +107,7 @@ RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.s

# install the release branch of the code generator tools
RUN mkdir -p /go/src && cd /go/src && mkdir -p k8s.io && cd k8s.io && \
git clone -b kubernetes-1.10.5 --depth=3 https://github.com/kubernetes/code-generator.git
git clone -b kubernetes-1.11.5 --depth=3 https://github.com/kubernetes/code-generator.git

# make sure we keep the path to go
RUN echo "export PATH=/usr/local/go/bin:/go/bin/:\$PATH" >> /root/.bashrc
Expand Down
2 changes: 1 addition & 1 deletion build/e2e-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN wget -q https://redirector.gvt1.com/edgedl/go/go${GO_VERSION}.linux-amd64.ta
ENV PATH /usr/local/go/bin:/go/bin:$PATH

# install kubectl without gcloud as we want the last version
ENV KUBECTL_VER 1.10.0
ENV KUBECTL_VER 1.11.5
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VER}/bin/linux/amd64/kubectl && \
chmod go+rx ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl
Expand Down
2 changes: 1 addition & 1 deletion build/gke-test-cluster/cluster-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resources:
cluster:
name: e2e-test-cluster
description: End to end tests cluster for Agones
initialClusterVersion: "1.10"
initialClusterVersion: "1.11"
nodePools:
- name: "default"
initialNodeCount: 4
Expand Down
Loading

0 comments on commit 4a936cf

Please sign in to comment.