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

Upgrade Agones to Kubernetes 1.23 #2711

Merged
merged 8 commits into from
Aug 24, 2022

Conversation

roberthbailey
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it: A series of commits to accomplish all of the code changes necessary to upgrade Agones to Kubernetes 1.23.

Which issue(s) this PR fixes:

Part of #2642

Special notes for your reviewer:
In the past I've done the steps as sequential pull requests. This time I took what would have been 7 PRs and combined them into a single PR with 7 commits. This should be reviewed one commit at a time (the client-go updates a lot of files in the vendor directory).

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: f1cd73a7-5566-4020-83df-e214698de6f4

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 65d7c84e-360f-4c4f-b3f0-fd5b09dddd02

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@roberthbailey
Copy link
Member Author

Looks like a test flake, since this is passing locally for me:

--- FAIL: TestSDKServerReserveTimeout (3.25s)
    sdkserver_test.go:954: 
        	Error Trace:	sdkserver_test.go:954
        	            				sdkserver_test.go:947
        	            				sdkserver_test.go:963
        	Error:      	Not equal: 
        	            	expected: time.Date(2022, time.August, 22, 21, 9, 44, 0, time.Local)
        	            	actual  : time.Date(2022, time.August, 22, 21, 9, 43, 0, time.Local)
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  wall: (uint64) 0,
        	            	- ext: (int64) 63796799384,
        	            	+ ext: (int64) 63796799383,
        	            	  loc: (*time.Location)({
        	Test:       	TestSDKServerReserveTimeout

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: c0ede083-e5dc-4628-8494-4f793ed192c1

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2711/head:pr_2711 && git checkout pr_2711
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.26.0-c6e8911-amd64

@roberthbailey roberthbailey assigned markmandel and unassigned pooneh-m Aug 22, 2022
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 64966daa-76a1-4d6a-a58c-fe37e935a679

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2711/head:pr_2711 && git checkout pr_2711
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.26.0-75177f7-amd64

@@ -25,18 +25,18 @@ require (
github.com/spf13/viper v1.7.0
github.com/stretchr/testify v1.7.0
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5
go.opencensus.io v0.22.3
go.opencensus.io v0.23.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(non-blocking) I wonder why opencensus incremented? Although it doesn't likely matter.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷

It looks like the v0.23.0 was released in Feb 2021 and has a few bug fixes relative to v0.22.3 (including a memory leak).

google.golang.org/grpc v1.27.1
golang.org/x/tools v0.1.5
google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1
google.golang.org/grpc v1.36.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that if we are upgrading grpc, we will likely also want to regen all the clients at some point before the next release. Doesn't have to be in this PR, as long as it's noted in #2642

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I can tackle that in a follow up PR.

@@ -200,7 +200,9 @@ properties:
description: The label key that the selector applies to.
type: string
operator:
description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
description: |+
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love that this hacky bash script is still working.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😃

@google-oss-prow google-oss-prow bot added the lgtm label Aug 24, 2022
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markmandel, roberthbailey

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [markmandel,roberthbailey]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@markmandel
Copy link
Member

Approved.

Will let you decide when you want to manage regenerating the grpc clients for the SDKs (now or later).

@roberthbailey
Copy link
Member Author

Will let you decide when you want to manage regenerating the grpc clients for the SDKs (now or later).

Definitely later. This PR already has enough commits. ;)

@roberthbailey roberthbailey merged commit 2a6a033 into googleforgames:main Aug 24, 2022
@roberthbailey roberthbailey mentioned this pull request Aug 24, 2022
25 tasks
@SaitejaTamma SaitejaTamma added this to the 1.26.0 milestone Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants