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

Ability to pass GameServer yaml/json to local sdk server #328

Merged
merged 1 commit into from
Aug 27, 2018

Conversation

markmandel
Copy link
Member

To be able to work locally, you need to be able to specify your local GameServer configuration, as it likely will have application specific configuration in it -- or maybe you want to specify what state it's in.

This commit allow you to specify the local resource as either yaml/json through a -f or --file flag.

Closes #296

@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 Aug 26, 2018
@markmandel markmandel added this to the 0.4.0 milestone Aug 26, 2018
@markmandel
Copy link
Member Author

/cc @victor-prodan - sneaking this one in, as I know you wanted it 😄

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 0bfb8096-26dd-4630-b554-5bd8bda4c8db

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

(experimental) To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/328/head:pr_328 && git checkout pr_328
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.4.0-e784314

@victor-prodan
Copy link
Contributor

@markmandel I could not find any way to reply to my 2 threads above and I'm new at github - did you close them by any chance?

About the 4096 constant, the problem I have is that it's completely magic;; when I read this code I have no idea why it's 4096 and not 128 or 16384. "Because kubernetes does it" is just another magic layer :)

In this case, I believe that the writer of the function should have also exposed a default buffer size as a constant.

Because that's missing, I think you could at least add a more specific reference and explanation. Just my opinion :)

About the allocation emulation yes you're right, we have #314 for it. I was mostly curious because I am new at go and didn't know if maybe I missed something. Anyway, good idea about setting it directly in 'allocated' state 👍

@markmandel
Copy link
Member Author

@victor-prodan the comments you made are tied to the commit, so you have to go back to the commit to reply 😄 github shenanigans.

Totally fair call about 4096 (you also made me laugh out loud 🤣 )! At the very least, it should be a much clearer explanation of what that value is! I have made that change now.

In this case, I believe that the writer of the function should have also exposed a default buffer size as a constant.

I agree on that point as well!

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 2b1126eb-fcab-4798-929e-867e617715b6

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

(experimental) To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/328/head:pr_328 && git checkout pr_328
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.4.0-8e1141a

Copy link
Collaborator

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

To be able to work locally, you need to be able to specify your
local `GameServer` configuration, as it likely will have application specific
configuration in it -- or maybe you want to specify what state it's in.

This commit allow you to specify the local resource as either yaml/json
through a `-f` or `--file` flag.

Closes googleforgames#296
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 6820c3b3-efa4-4cb7-8d39-6407bd4c98c8

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

(experimental) To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/328/head:pr_328 && git checkout pr_328
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.4.0-a486366

@markmandel markmandel merged commit 383bd22 into googleforgames:master Aug 27, 2018
@markmandel markmandel deleted the feature/local-file branch August 27, 2018 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/feature New features for Agones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants