Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Golang Version to go1.20.10 #3475

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ KIND_PROFILE ?= agones
KIND_CONTAINER_NAME=$(KIND_PROFILE)-control-plane

# Game Server image to use while doing end-to-end tests
GS_TEST_IMAGE ?= us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
GS_TEST_IMAGE ?= us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21

# Enable all alpha feature gates. Keep in sync with `false` (alpha) entries in pkg/util/runtime/features.go:featureDefaults
ALPHA_FEATURE_GATES ?= "PlayerAllocationFilter=true&PlayerTracking=true&CountsAndLists=true&FleetAllocationOverflow=true&Example=true"
Expand Down
2 changes: 1 addition & 1 deletion build/build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN apt-get update && \

# install go
WORKDIR /usr/local
ENV GO_VERSION=1.20.4
ENV GO_VERSION=1.20.10
ENV GOPATH /go
ENV GO111MODULE=on
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \
Expand Down
2 changes: 1 addition & 1 deletion build/build-sdk-images/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN apt-get --allow-releaseinfo-change update && \

# install go
WORKDIR /usr/local
ENV GO_VERSION=1.20.4
ENV GO_VERSION=1.20.10
ENV GO111MODULE=on
ENV GOPATH /go
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \
Expand Down
2 changes: 1 addition & 1 deletion build/build-sdk-images/restapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN apt-get --allow-releaseinfo-change update && \

# install go
WORKDIR /usr/local
ENV GO_VERSION=1.20.4
ENV GO_VERSION=1.20.10
ENV GO111MODULE=on
ENV GOPATH /go
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \
Expand Down
2 changes: 1 addition & 1 deletion build/e2e-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update && \

# install go
WORKDIR /usr/local
ENV GO_VERSION=1.20.4
ENV GO_VERSION=1.20.10
ENV GOPATH /go
ENV GO111MODULE=on
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \
Expand Down
2 changes: 1 addition & 1 deletion build/report/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ steps:
id: build-report
script: |
#!/usr/bin/env bash
export GO_VERSION=1.20.4
export GO_VERSION=1.20.10
cd /usr/local
curl -SsL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -xzf-
export PATH=/usr/local/go/bin:${PATH}
Expand Down
2 changes: 1 addition & 1 deletion examples/autoscaler-webhook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Gather dependencies and build the executable
FROM golang:1.20.4 as builder
FROM golang:1.20.10 as builder
WORKDIR /go/src
COPY . agones.dev/agones

Expand Down
4 changes: 2 additions & 2 deletions examples/autoscaler-webhook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ project_path := $(dir $(mkfile_path))
root_path := $(realpath $(project_path)/../..)

ifeq ($(REPOSITORY),)
autoscaler_webhook_tag := autoscaler-webhook:0.8
autoscaler_webhook_tag := autoscaler-webhook:0.9
else
autoscaler_webhook_tag := $(REPOSITORY)/autoscaler-webhook:0.8
autoscaler_webhook_tag := $(REPOSITORY)/autoscaler-webhook:0.9
endif

# _____ _
Expand Down
2 changes: 1 addition & 1 deletion examples/autoscaler-webhook/autoscaler-service-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
secretName: autoscalersecret
containers:
- name: autoscaler-webhook
image: us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.8
image: us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.9
imagePullPolicy: Always
volumeMounts:
- mountPath: /home/service/certs
Expand Down
2 changes: 1 addition & 1 deletion examples/autoscaler-webhook/autoscaler-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
# serviceAccount: autoscaler-webhook
containers:
- name: autoscaler-webhook
image: us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.8
image: us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.9
imagePullPolicy: Always
ports:
- name: autoscaler
Expand Down
2 changes: 1 addition & 1 deletion examples/crd-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Gather dependencies and build the executable
FROM golang:1.20.4 as builder
FROM golang:1.20.10 as builder
WORKDIR /go/src/crd-client
COPY . .

Expand Down
4 changes: 2 additions & 2 deletions examples/crd-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ REPOSITORY ?=
PROD_REPO ?= us-docker.pkg.dev/agones-images/examples

ifeq ($(REPOSITORY),)
server_tag := crd-client:0.11
server_tag := crd-client:0.12
else
server_tag := $(REPOSITORY)/crd-client:0.11
server_tag := $(REPOSITORY)/crd-client:0.12
endif

# _____ _
Expand Down
4 changes: 2 additions & 2 deletions examples/crd-client/create-gs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ spec:
cpu: 500m
ephemeral-storage: 1Gi
memory: 2Gi
image: us-docker.pkg.dev/agones-images/examples/crd-client:0.11
image: us-docker.pkg.dev/agones-images/examples/crd-client:0.12
imagePullPolicy: Always
env:
- name: GAMESERVER_IMAGE
value: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
value: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
restartPolicy: Never
2 changes: 1 addition & 1 deletion examples/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
2 changes: 1 addition & 1 deletion examples/gameserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
imagePullPolicy: Always
# nodeSelector is a label that can be used to tell Kubernetes which host
# OS to use. For Windows game servers uncomment the nodeSelector
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-game-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# build
FROM golang:1.20.4 as builder
FROM golang:1.20.10 as builder
WORKDIR /go/src
COPY . agones.dev/agones

Expand Down
2 changes: 1 addition & 1 deletion examples/simple-game-server/Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Build Stage
ARG WINDOWS_VERSION=ltsc2019

FROM --platform=linux/amd64 golang:1.20.4 as builder
FROM --platform=linux/amd64 golang:1.20.10 as builder
WORKDIR /go/src
COPY . agones.dev/agones

Expand Down
4 changes: 2 additions & 2 deletions examples/simple-game-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ WITH_ARM64 ?= 1
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
project_path := $(dir $(mkfile_path))
ifeq ($(REPOSITORY),)
server_tag := simple-game-server:0.20
server_tag := simple-game-server:0.21
else
server_tag := $(REPOSITORY)/simple-game-server:0.20
server_tag := $(REPOSITORY)/simple-game-server:0.21
endif

ifeq ($(WITH_WINDOWS), 1)
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-game-server/dev-gameserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
2 changes: 1 addition & 1 deletion examples/simple-game-server/fleet-distributed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
resources:
requests:
memory: 64Mi
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-game-server/fleet-tcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
env:
# Disables the UDP listener (Enabled by default)
- name: UDP
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-game-server/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
resources:
requests:
memory: 64Mi
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-game-server/gameserver-passthrough.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
env:
- name: PASSTHROUGH
value: 'TRUE'
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-game-server/gameserver-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
resources:
requests:
memory: 64Mi
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-game-server/gameserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
resources:
requests:
memory: 64Mi
Expand Down
2 changes: 1 addition & 1 deletion examples/supertuxkart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# build go
FROM golang:1.20.4 as go-builder
FROM golang:1.20.10 as go-builder
WORKDIR /go/src/supertuxkart

COPY main.go go.mod ./
Expand Down
4 changes: 2 additions & 2 deletions examples/supertuxkart/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ PROD_REPO ?= us-docker.pkg.dev/agones-images/examples
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
project_path := $(dir $(mkfile_path))
ifeq ($(REPOSITORY),)
image_tag := supertuxkart-example:0.9
image_tag := supertuxkart-example:0.10
else
image_tag := $(REPOSITORY)/supertuxkart-example:0.9
image_tag := $(REPOSITORY)/supertuxkart-example:0.10
endif

# _____ _
Expand Down
2 changes: 1 addition & 1 deletion examples/supertuxkart/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ spec:
spec:
containers:
- name: supertuxkart
image: us-docker.pkg.dev/agones-images/examples/supertuxkart-example:0.9
image: us-docker.pkg.dev/agones-images/examples/supertuxkart-example:0.10
2 changes: 1 addition & 1 deletion examples/supertuxkart/gameserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
spec:
containers:
- name: supertuxkart
image: us-docker.pkg.dev/agones-images/examples/supertuxkart-example:0.9
image: us-docker.pkg.dev/agones-images/examples/supertuxkart-example:0.10
# imagePullPolicy: Always # add for development
env:
- name: ENABLE_PLAYER_TRACKING
Expand Down
2 changes: 1 addition & 1 deletion examples/xonotic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# build
FROM golang:1.20.4 as builder
FROM golang:1.20.10 as builder

RUN apt-get update && apt-get install -y unzip curl

Expand Down
2 changes: 1 addition & 1 deletion examples/xonotic/Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
ARG WINDOWS_VERSION=ltsc2019

# Build Stage
FROM --platform=linux/amd64 golang:1.20.4 as base
FROM --platform=linux/amd64 golang:1.20.10 as base

RUN apt-get update && apt-get install -y unzip curl

Expand Down
4 changes: 2 additions & 2 deletions examples/xonotic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ WINDOWS_DOCKER_PUSH_ARGS = --push
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
project_path := $(dir $(mkfile_path))
ifeq ($(REPOSITORY),)
server_tag := xonotic-example:1.3
server_tag := xonotic-example:1.4
else
server_tag := $(REPOSITORY)/xonotic-example:1.3
server_tag := $(REPOSITORY)/xonotic-example:1.4
endif

server_tag_linux_amd64 = $(server_tag)-linux-amd64
Expand Down
2 changes: 1 addition & 1 deletion examples/xonotic/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ spec:
spec:
containers:
- name: xonotic
image: us-docker.pkg.dev/agones-images/examples/xonotic-example:1.3
image: us-docker.pkg.dev/agones-images/examples/xonotic-example:1.4
2 changes: 1 addition & 1 deletion examples/xonotic/gameserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ spec:
spec:
containers:
- name: xonotic
image: us-docker.pkg.dev/agones-images/examples/xonotic-example:1.3
image: us-docker.pkg.dev/agones-images/examples/xonotic-example:1.4
# imagePullPolicy: Always # add for development
4 changes: 2 additions & 2 deletions install/helm/agones/templates/tests/test-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ spec:
serviceAccountName: agones-controller
containers:
- name: create-gameserver
image: us-docker.pkg.dev/agones-images/examples/crd-client:0.11
image: us-docker.pkg.dev/agones-images/examples/crd-client:0.12
imagePullPolicy: Always
env:
- name: GAMESERVER_IMAGE
value: "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20"
value: "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21"
- name: IS_HELM_TEST
value: "true"
- name: GAMESERVERS_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/webhooks/webhooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func TestWebHookFleetValidationHandler(t *testing.T) {
"template": {
"spec": {
"containers": [{
"image": "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20",
"image": "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21",
"name": false
}]
}
Expand Down
2 changes: 1 addition & 1 deletion site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ dev_eks_example_cluster_version = "1.28"
dev_minikube_example_cluster_version = "1.27.6"

# example tag
example_image_tag = "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20"
example_image_tag = "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21"

# Enable syntax highlighting and copy buttons on code blocks with Prism
prism_syntax_highlighting = true
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/docs/Guides/fleet-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ spec:
spec:
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
```

See the [Fleet reference]({{% relref "../Reference/fleet.md" %}}) for more details.
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/fleetautoscaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ func defaultAutoscalerWebhook(namespace string) (*corev1.Pod, *corev1.Service) {
},
Spec: corev1.PodSpec{
Containers: []corev1.Container{{Name: "webhook",
Image: "us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.8",
Image: "us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.9",
ImagePullPolicy: corev1.PullAlways,
Ports: []corev1.ContainerPort{{
ContainerPort: 8000,
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func NewFromFlags() (*Framework, error) {
}

viper.SetDefault(kubeconfigFlag, filepath.Join(usr.HomeDir, ".kube", "config"))
viper.SetDefault(gsimageFlag, "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20")
viper.SetDefault(gsimageFlag, "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21")
viper.SetDefault(pullSecretFlag, "")
viper.SetDefault(stressTestLevelFlag, 0)
viper.SetDefault(perfOutputDirFlag, "")
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/gameserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ spec:
preferredDuringSchedulingIgnoredDuringExecution: ERROR
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
`
err := os.WriteFile("/tmp/invalid.yaml", []byte(gsYaml), 0o644)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion test/load/allocation/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
spec:
containers:
- args: [-automaticShutdownDelaySec=600]
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
name: simple-game-server
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion test/load/allocation/scenario-fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
value: 'true'
containers:
- name: simple-game-server
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.20
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.21
args: [-automaticShutdownDelaySec=60, -readyIterations=10]
resources:
limits:
Expand Down