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

APIService: Updates to handlers for 1.27.x #3297

Merged

Conversation

markmandel
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
/kind release

What this PR does / Why we need it:

This includes a bug fix for the issue outlined in
kubernetes/kubernetes#119662, specifically returning HTTP 406 for root /apis for all requests.

Also included an empty OpenAPI v3 discovery document to /openapi/v3 to stop the regular requests from the K8s control plane, while also bringing the implementation for /openapi/v2 to be consistent with the new one.

Which issue(s) this PR fixes:

Closes #3172

Special notes for your reviewer:

Snuck in a linter fix as well.

This includes a bug fix for the issue outlined in
kubernetes/kubernetes#119662, specifically
returning HTTP 406 for root /apis for all requests.

Also included an empty OpenAPI v3 discovery document to `/openapi/v3`
to stop the regular requests from the K8s control plane, while also
bringing the implementation for `/openapi/v2` to be consistent with the
new one.

Snuck in a linter fix as well.

Closes googleforgames#3172
@markmandel markmandel added the area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc label Jul 31, 2023
@markmandel markmandel marked this pull request as ready for review July 31, 2023 22:56
@github-actions github-actions bot added the kind/bug These are bugs. label Jul 31, 2023
@@ -233,7 +233,6 @@ func TestControllerSyncGameServerWithDevIP(t *testing.T) {
gsFixture.ApplyDefaults()
gsFixture.Status.State = agonesv1.GameServerStateRequestReady


Copy link
Member Author

Choose a reason for hiding this comment

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

My local linter complained about this. Maybe a newer version?

Copy link
Member

@roberthbailey roberthbailey left a comment

Choose a reason for hiding this comment

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

@markmandel
Copy link
Member Author

Should https://github.com/googleforgames/agones/blob/main/pkg/util/apiserver/apiserver_test.go be updated to test the new endpoints?

Sure, why not. They were really doing a whole lot, but more tests betterer.

@google-oss-prow google-oss-prow bot removed the lgtm label Jul 31, 2023
@markmandel
Copy link
Member Author

Unit tests added!

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@roberthbailey roberthbailey enabled auto-merge (squash) August 1, 2023 00:39
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 9ea612c5-a144-482e-b6ae-9e11530f11c1

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/3297/head:pr_3297 && git checkout pr_3297
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.34.0-dev-05f7834-amd64

@roberthbailey roberthbailey merged commit 777acb2 into googleforgames:main Aug 1, 2023
2 checks passed
@markmandel markmandel deleted the bug/1.27-Aggregate-Discovery branch August 1, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/bug These are bugs. lgtm size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stale GroupVersion discovery: allocation.agones.dev/v1 (Namespace deletion)
5 participants