Skip to content

Commit 87e15a9

Browse files
authored
Upgrade Go to 1.23.4 and update example image tags (googleforgames#4072)
1 parent f2a5ccd commit 87e15a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+182
-189
lines changed

build/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ KIND_PROFILE ?= agones
6464
KIND_CONTAINER_NAME=$(KIND_PROFILE)-control-plane
6565

6666
# Game Server image to use while doing end-to-end tests
67-
GS_TEST_IMAGE ?= us-docker.pkg.dev/agones-images/examples/simple-game-server:0.35
67+
GS_TEST_IMAGE ?= us-docker.pkg.dev/agones-images/examples/simple-game-server:0.36
6868

6969
# Enable all beta feature gates. Keep in sync with `true` (beta) entries in pkg/util/runtime/features.go:featureDefaults
7070
BETA_FEATURE_GATES ?= "AutopilotPassthroughPort=true&CountsAndLists=true&DisableResyncOnSDKServer=true&GKEAutopilotExtendedDurationPods=true"

build/agones-bot/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.22 AS build-env
15+
FROM golang:1.23 AS build-env
1616
COPY . /go-src
1717
WORKDIR /go-src
1818
RUN CGO_ENABLED=0 go build -o /go-app .

build/agones-bot/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
module github-bot
1616

17-
go 1.22
17+
go 1.23
1818

1919
require (
2020
github.com/GoogleCloudPlatform/cloud-build-notifiers/lib/notifiers v0.0.0-20210219212036-163c92a64b27

build/build-image/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN gem install fpm && \
2828

2929
# install go
3030
WORKDIR /usr/local
31-
ENV GO_VERSION=1.22.6
31+
ENV GO_VERSION=1.23.4
3232
ENV GOPATH /go
3333
ENV GO111MODULE=on
3434
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \

build/build-sdk-images/go/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN apt-get --allow-releaseinfo-change update && \
2020

2121
# install go
2222
WORKDIR /usr/local
23-
ENV GO_VERSION=1.22.6
23+
ENV GO_VERSION=1.23.4
2424
ENV GO111MODULE=on
2525
ENV GOPATH /go
2626
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \

build/build-sdk-images/restapi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN apt-get --allow-releaseinfo-change update && \
2020

2121
# install go
2222
WORKDIR /usr/local
23-
ENV GO_VERSION=1.22.6
23+
ENV GO_VERSION=1.23.4
2424
ENV GO111MODULE=on
2525
ENV GOPATH /go
2626
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \

build/e2e-image/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt-get update && \
66

77
# install go
88
WORKDIR /usr/local
9-
ENV GO_VERSION=1.22.6
9+
ENV GO_VERSION=1.23.4
1010
ENV GOPATH /go
1111
ENV GO111MODULE=on
1212
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \

build/report/cloudbuild.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ steps:
1919
id: build-report
2020
script: |
2121
#!/usr/bin/env bash
22-
export GO_VERSION=1.22.6
22+
export GO_VERSION=1.23.4
2323
cd /usr/local
2424
curl -SsL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -xzf-
2525
export PATH=/usr/local/go/bin:${PATH}

build/scripts/example-version-checker/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/agones/agones/build/scripts/example-version-checker
22

3-
go 1.21
3+
go 1.23
44

55
require github.com/go-git/go-git/v5 v5.12.0
66

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/agones/agones/build/scripts/k8s-export-openapi
22

3-
go 1.22
3+
go 1.23
44

55
require github.com/itchyny/json2yaml v0.1.4

build/scripts/previousversion/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/agones/agones/build/scripts/previousversion
22

3-
go 1.22
3+
go 1.23
44

55
require github.com/blang/semver/v4 v4.0.0
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/agones/agones/build/scripts/site-config-update-version
22

3-
go 1.22
3+
go 1.23
44

55
require github.com/pelletier/go-toml v1.9.5

examples/allocation-endpoint/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ PROD_REPO ?= us-docker.pkg.dev/agones-images/examples
3030
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
3131
project_path := $(dir $(mkfile_path))
3232
root_path = $(realpath $(project_path)/../..)
33-
version := 0.10
33+
version := 0.11
3434
ifeq ($(REPOSITORY),)
3535
server_tag := allocation-endpoint-proxy:$(version)
3636
else

examples/allocation-endpoint/client/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module agones.dev/agones/examples/allocation-endpoint/client
22

3-
go 1.22
3+
go 1.23
44

55
require (
66
agones.dev/agones v1.35.0

examples/allocation-endpoint/server/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# syntax=docker/dockerfile:1
1616

17-
FROM golang:1.22-alpine
17+
FROM golang:1.23-alpine
1818

1919
WORKDIR /app
2020

examples/allocation-endpoint/server/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module agones.dev/agones/examples/allocation-endpoint/server
22

3-
go 1.22
3+
go 1.23
44

55
require (
66
agones.dev/agones v1.35.0

examples/allocation-endpoint/terraform/variable.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ variable "project_id" {
2020
variable "ae_proxy_image" {
2121
type = string
2222
description = "The docker image of the allocation proxy."
23-
default = "us-docker.pkg.dev/agones-images/examples/allocation-endpoint-proxy:0.10"
23+
default = "us-docker.pkg.dev/agones-images/examples/allocation-endpoint-proxy:0.11"
2424
}
2525

2626
variable "region" {

examples/autoscaler-webhook/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Gather dependencies and build the executable
16-
FROM golang:1.22.6 as builder
16+
FROM golang:1.23.4 as builder
1717
WORKDIR /go/src
1818
COPY . agones.dev/agones
1919

examples/autoscaler-webhook/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ PROD_REPO ?= us-docker.pkg.dev/agones-images/examples
2929
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
3030
project_path := $(dir $(mkfile_path))
3131
root_path := $(realpath $(project_path)/../..)
32-
version := 0.15
32+
version := 0.16
3333
ifeq ($(REPOSITORY),)
3434
autoscaler_webhook_tag := autoscaler-webhook:$(version)
3535
else

examples/autoscaler-webhook/autoscaler-service-tls.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ spec:
5454
secretName: autoscalersecret
5555
containers:
5656
- name: autoscaler-webhook
57-
image: us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.15
57+
image: us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.16
5858
imagePullPolicy: Always
5959
volumeMounts:
6060
- mountPath: /home/service/certs

examples/autoscaler-webhook/autoscaler-service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
# serviceAccount: autoscaler-webhook
5151
containers:
5252
- name: autoscaler-webhook
53-
image: us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.15
53+
image: us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.16
5454
imagePullPolicy: Always
5555
ports:
5656
- name: autoscaler

examples/autoscaler-webhook/go.mod

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
module autoscaler-webhook
22

3-
go 1.22
3+
go 1.23
44

55
require agones.dev/agones v1.35.0
66

77
require (
88
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
99
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
1010
github.com/fsnotify/fsnotify v1.7.0 // indirect
11-
github.com/go-logr/logr v1.3.0 // indirect
12-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
11+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
12+
github.com/go-logr/logr v1.4.2 // indirect
13+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
1314
github.com/go-openapi/jsonreference v0.20.2 // indirect
1415
github.com/go-openapi/spec v0.19.5 // indirect
15-
github.com/go-openapi/swag v0.22.3 // indirect
16+
github.com/go-openapi/swag v0.23.0 // indirect
1617
github.com/gogo/protobuf v1.3.2 // indirect
1718
github.com/golang/protobuf v1.5.4 // indirect
1819
github.com/google/gnostic-models v0.6.8 // indirect
1920
github.com/google/gofuzz v1.2.0 // indirect
20-
github.com/google/uuid v1.3.1 // indirect
21-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 // indirect
21+
github.com/google/uuid v1.6.0 // indirect
22+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
2223
github.com/hashicorp/hcl v1.0.0 // indirect
2324
github.com/imdario/mergo v0.3.6 // indirect
2425
github.com/josharian/intern v1.0.0 // indirect
@@ -41,31 +42,31 @@ require (
4142
github.com/spf13/pflag v1.0.5 // indirect
4243
github.com/spf13/viper v1.17.0 // indirect
4344
github.com/subosito/gotenv v1.6.0 // indirect
45+
github.com/x448/float16 v0.8.4 // indirect
4446
go.uber.org/multierr v1.11.0 // indirect
4547
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
46-
golang.org/x/net v0.23.0 // indirect
47-
golang.org/x/oauth2 v0.12.0 // indirect
48-
golang.org/x/sys v0.18.0 // indirect
49-
golang.org/x/term v0.18.0 // indirect
50-
golang.org/x/text v0.14.0 // indirect
48+
golang.org/x/net v0.28.0 // indirect
49+
golang.org/x/oauth2 v0.21.0 // indirect
50+
golang.org/x/sys v0.23.0 // indirect
51+
golang.org/x/term v0.23.0 // indirect
52+
golang.org/x/text v0.17.0 // indirect
5153
golang.org/x/time v0.3.0 // indirect
5254
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
53-
google.golang.org/appengine v1.6.7 // indirect
54-
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b // indirect
55-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect
56-
google.golang.org/grpc v1.59.0 // indirect
57-
google.golang.org/protobuf v1.33.0 // indirect
55+
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
56+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
57+
google.golang.org/grpc v1.65.0 // indirect
58+
google.golang.org/protobuf v1.34.2 // indirect
5859
gopkg.in/fsnotify.v1 v1.4.7 // indirect
5960
gopkg.in/inf.v0 v0.9.1 // indirect
6061
gopkg.in/ini.v1 v1.67.0 // indirect
6162
gopkg.in/yaml.v2 v2.4.0 // indirect
6263
gopkg.in/yaml.v3 v3.0.1 // indirect
63-
k8s.io/api v0.29.7 // indirect
64-
k8s.io/apimachinery v0.29.7 // indirect
65-
k8s.io/client-go v0.29.7 // indirect
66-
k8s.io/klog/v2 v2.110.1 // indirect
67-
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
68-
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
64+
k8s.io/api v0.31.0 // indirect
65+
k8s.io/apimachinery v0.31.0 // indirect
66+
k8s.io/client-go v0.31.0 // indirect
67+
k8s.io/klog/v2 v2.130.1 // indirect
68+
k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38 // indirect
69+
k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 // indirect
6970
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
7071
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
7172
sigs.k8s.io/yaml v1.4.0 // indirect

0 commit comments

Comments
 (0)