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

Alpha GameServer attributes added to SDK #1440

Merged

Conversation

markmandel
Copy link
Member

@markmandel markmandel commented Apr 1, 2020

Rather than recreating SDK.GameServer() and SDK.WatchGameServer() in the alpha SDK, I thought it would be easiest both in the short and long term to mimic what we have done in the GameServer CRD, and populate the Alpha attributes from these SDK methods when the feature flag for Player Tracking is enabled.

This is done by adding logic to the conversion function that converts the K8s GameServer definition into the SDK GameServer definition.

This includes regenerated gRPC code for the supported clients.

I also had to fix the line endings in the C# gen.sh, so including that in this PR.

Work on #1033

Rather than recreating SDK.GameServer() and SDK.WatchGameServer() in the
alpha SDK, I thought it would be easiest both in the short and long
term to mimic what we have done in the GameServer CRD, and populate the
Alpha attributes from these SDK methods when the feature flag for
Player Tracking is enabled.

This is done by adding logic to the conversion function that converts
the K8s GameServer definition into the SDK GameServer definition.

This includes regenerated gRPC code for the supported clients.

I also had to fix the line endings in the C# gen.sh, so including that
in this PR.
@markmandel markmandel added kind/feature New features for Agones area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc labels Apr 1, 2020
@markmandel markmandel added this to the 1.5.0 milestone Apr 1, 2020
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 005ed5f7-70f5-4113-90aa-65711902df4a

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/GoogleCloudPlatform/agones.git pull/1440/head:pr_1440 && git checkout pr_1440
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.5.0-73ee0d7

pkg/sdkserver/sdk.go Outdated Show resolved Hide resolved
pkg/sdkserver/sdk_test.go Outdated Show resolved Hide resolved
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f6e1973f-d545-42d9-b8e0-15e2c029dd62

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/GoogleCloudPlatform/agones.git pull/1440/head:pr_1440 && git checkout pr_1440
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.5.0-3ce0ce0

@google-oss-robot
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

@roberthbailey roberthbailey merged commit 0f376ea into googleforgames:master Apr 1, 2020
@markmandel markmandel deleted the feature/player-capacity-2 branch April 1, 2020 05:32
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
* Alpha GameServer attributes added to SDK

Rather than recreating SDK.GameServer() and SDK.WatchGameServer() in the
alpha SDK, I thought it would be easiest both in the short and long
term to mimic what we have done in the GameServer CRD, and populate the
Alpha attributes from these SDK methods when the feature flag for
Player Tracking is enabled.

This is done by adding logic to the conversion function that converts
the K8s GameServer definition into the SDK GameServer definition.

This includes regenerated gRPC code for the supported clients.

I also had to fix the line endings in the C# gen.sh, so including that
in this PR.

* Update based on review
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/feature New features for Agones lgtm size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants