Skip to content

Commit

Permalink
Merge branch 'main' into feature/extend-webhook-autoscaler
Browse files Browse the repository at this point in the history
  • Loading branch information
igooch authored Dec 13, 2024
2 parents 9e74cc5 + 3795372 commit 2b8baf3
Show file tree
Hide file tree
Showing 137 changed files with 20,842 additions and 17,080 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ bin
/site/public
/test

# Allow upgrade test directory
!/test/upgrade

# Created by .ignore support plugin (hsz.mobi)
### Go template
# Binaries for programs and plugins
Expand Down
20 changes: 12 additions & 8 deletions .github/ISSUE_TEMPLATE/golang_version_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@ assignees: ''


Steps to upgrade Golang version:
- [ ] Update `go.mod` and `go.sum`. At the root of the directory, run:
- [ ] Update `go.mod` and `go.sum`. At the root (agones) directory, run:
- [ ] `find . -name 'go.mod' -not -path '*/\.*' -execdir go mod edit -go=<NEW_GOLANG_VERSION_WITHOUT_PATCH> \;`
- [ ] `find . -name 'go.mod' -not -path '*/\.*' -execdir go mod tidy \;`

- [ ] Update the Dockerfiles for `build` directory.

- [ ] At the root of the directory, run: `find build -type f \( -not -path '*/\.*' -and -not -path 'build/tmp/*' \) -exec sed -i 's/GO_VERSION=[0-9]\+\.[0-9]\+\.[0-9]\+/GO_VERSION=<NEW_GOLANG_VERSION>/g' {} \;`
- [ ] Update the Dockerfiles for `build` directory.
- [ ] At the root directory, run: `find build -type f \( -not -path '*/\.*' -and -not -path 'build/tmp/*' \) -exec sed -i 's/GO_VERSION=[0-9]\+\.[0-9]\+\.[0-9]\+/GO_VERSION=<NEW_GOLANG_VERSION>/g' {} \;`
- [ ] Update the `golang` version for file `build/agones-bot/Dockerfile` to <NEW_GOLANG_VERSION_WITHOUT_PATCH>

- [ ] Update the Dockerfiles for `examples` directory. At the root of the directory, run:

- [ ] Update the Dockerfiles for `test` directory.
- [ ] At the root directory, run: `find test -type f -exec sed -i 's/golang:[0-9]\+\.[0-9]\+\.[0-9]\+/golang:<NEW_GOLANG_VERSION>/g' {} \;`
- [ ] At the root directory, run: `find test -type f -exec sed -i 's/go [0-9]\+\.[0-9]\+\.[0-9]\+/go <NEW_GOLANG_VERSION>/g' {} \;`
- [ ] At the root directory, run: `find test -type f -name 'go.mod' -execdir go mod tidy \;`

- [ ] Update the Dockerfiles for `examples` directory. At the root directory, run:
- [ ] `find examples -name Dockerfile -exec sed -i 's/golang:[0-9]\+\.[0-9]\+-alpine/golang:<NEW_GOLANG_VERSION_WITHOUT_PATCH>-alpine/g' {} \;`
- [ ] `find examples \( -name Dockerfile -o -name Dockerfile.windows \) -exec sed -i 's/golang:[0-9]\+\.[0-9]\+\.[0-9]\+/golang:<NEW_GOLANG_VERSION>/g' {} \;`

- [ ] Update the example images tag. At `build` directory, run:
- [ ] `make bump-image IMAGENAME=allocation-endpoint-proxy VERSION=<current-image-version>`
- [ ] `make bump-image IMAGENAME=autoscaler-webhook VERSION=<current-image-version>`
Expand All @@ -44,4 +48,4 @@ Steps to upgrade Golang version:

- [ ] Create a PR for the above changes and send for review

- [ ] Merge the above PR after it is approved
- [ ] Merge the above PR after it is approved
169 changes: 116 additions & 53 deletions .github/ISSUE_TEMPLATE/kubernetes_update.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ rules:
ignore:
- /build/.gomod/
- /build/.config/
- /build/scripts/example-version-checker/tmp
- /install/
- /sdks/
- /test/sdk/
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Changelog

## [v1.45.0](https://github.com/googleforgames/agones/tree/v1.45.0) (2024-11-19)

[Full Changelog](https://github.com/googleforgames/agones/compare/v1.44.0...v1.45.0)

**Breaking changes:**
- Update Supported Kubernetes to 1.29, 1.30, 1.31 by @kamaljeeti in https://github.com/googleforgames/agones/pull/4024

**Implemented enhancements:**
- Dashboard for Agones GameServer State duration by @vicentefb in https://github.com/googleforgames/agones/pull/3947
- Add Shutdown Delay Seconds to the sdk-client-test containers by @igooch in https://github.com/googleforgames/agones/pull/4030
- Add a CI check to fail on change to an example without a new version by @wheatear-dev in https://github.com/googleforgames/agones/pull/3940

**Fixed bugs:**
- Allowing list based fleet autoscaler to scale up from 0 replicas by @geopaulm in https://github.com/googleforgames/agones/pull/4016

**Other:**
- Preparation for Release v1.45.0 by @0xaravindh in https://github.com/googleforgames/agones/pull/4014
- Update all Rust SDK dependencies to latest versions by @john-haven in https://github.com/googleforgames/agones/pull/4008
- Write Terraform scripts and docs to show how to create OKE cluster and install Agones by @ouxingning in https://github.com/googleforgames/agones/pull/4023
- Created performance cluster 1.30 by @kamaljeeti in https://github.com/googleforgames/agones/pull/4031
- Updates the upgrade terraform by @igooch in https://github.com/googleforgames/agones/pull/4036
- Adding Fleet Active GameServerSet Percentage Metrics by @0xaravindh in https://github.com/googleforgames/agones/pull/4021
- Introducing Agones Guru on Gurubase.io by @kursataktas in https://github.com/googleforgames/agones/pull/4028

**New Contributors:**
- @john-haven made their first contribution in https://github.com/googleforgames/agones/pull/4008
- @geopaulm made their first contribution in https://github.com/googleforgames/agones/pull/4016
- @ouxingning made their first contribution in https://github.com/googleforgames/agones/pull/4023
- @wheatear-dev made their first contribution in https://github.com/googleforgames/agones/pull/3940
- @kursataktas made their first contribution in https://github.com/googleforgames/agones/pull/4028

## [v1.44.0](https://github.com/googleforgames/agones/tree/v1.44.0) (2024-10-08)

[Full Changelog](https://github.com/googleforgames/agones/compare/v1.43.0...v1.44.0)
Expand All @@ -12,13 +43,15 @@
- Adds clusters for the in place upgrades tests by @igooch in https://github.com/googleforgames/agones/pull/3990
- Test in place upgrades run tests by @igooch in https://github.com/googleforgames/agones/pull/3991
- Move Feature GKEAutopilotExtendedDurationPods To Beta by @kamaljeeti in https://github.com/googleforgames/agones/pull/4006

**Fixed bugs:**
- fix: remove bad character from metrics markdown by @code-eg in https://github.com/googleforgames/agones/pull/3981
- Updating UpdateList to update the values on a list by @chrisfoster121 in https://github.com/googleforgames/agones/pull/3899
- Cleanup Patch Sidecar Logging by @markmandel in https://github.com/googleforgames/agones/pull/3973
- Refactor metrics registry exporter by @kamaljeeti in https://github.com/googleforgames/agones/pull/3989
- Fix the build-e2e error by @gongmax in https://github.com/googleforgames/agones/pull/4009
- Add a flag to sdkserver to avoid a collision on port 8080 by @KAllan357 in https://github.com/googleforgames/agones/pull/4010

**Other:**
- Update the note at the top of the player tracking docs by @roberthbailey in https://github.com/googleforgames/agones/pull/3974
- Adds schedule and chain policy to fleetautoscaler documentation by @indexjoseph in https://github.com/googleforgames/agones/pull/3934
Expand Down
2 changes: 1 addition & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#

# base version target. This is usually the next release.
base_version = 1.45.0
base_version = 1.46.0

#
# All of the following can be overwritten with environment variables
Expand Down
9 changes: 2 additions & 7 deletions build/build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ RUN go install golang.org/x/tools/cmd/goimports@latest && \
go install golang.org/x/pkgsite/cmd/pkgsite@latest

# the kubernetes version for the file
#
# When this is raised to 1.29: bump the code-generator version on line 66 to the v0.30 tag.
# When this is raised to >=1.30: delete line 66-67 and uncomment line 68 to stop pinning code-generator.
ENV KUBERNETES_VER 1.29.7
ENV KUBERNETES_VER 1.30.4

# overwrite kubectl as we want a specific version
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VER}/bin/linux/amd64/kubectl && \
Expand All @@ -63,9 +60,7 @@ RUN echo "source <(kubectl completion bash)" >> /root/.bashrc

# install the release branch of the code generator tools
RUN mkdir -p /go/src/k8s.io && cd /go/src/k8s.io && \
git clone -b v0.30.0 --depth=3 https://github.com/kubernetes/code-generator.git
# We are pinning code-generator for now - kube_codegen.sh has substantial improvements in later releases.
# git clone -b kubernetes-${KUBERNETES_VER} --depth=3 https://github.com/kubernetes/code-generator.git
git clone -b kubernetes-${KUBERNETES_VER} --depth=3 https://github.com/kubernetes/code-generator.git

# install Helm package manager
ENV HELM_VER 3.10.3
Expand Down
2 changes: 1 addition & 1 deletion build/e2e-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \
ENV PATH /usr/local/go/bin:/go/bin:$PATH

# install kubectl without gcloud as we want the last version
ENV KUBECTL_VER 1.29.7
ENV KUBECTL_VER 1.30.4
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
Loading

0 comments on commit 2b8baf3

Please sign in to comment.