-
Notifications
You must be signed in to change notification settings - Fork 823
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
SDK GameServer()
function for retrieving backing GameServer configuration
#288
SDK GameServer()
function for retrieving backing GameServer configuration
#288
Conversation
Build Failed 😱 Build Id: 5ead8341-91f0-40a0-a91c-8922aafa312c Build Logs
|
563c592
to
5647b40
Compare
Build Succeeded 👏 Build Id: 8990a35c-cec2-46c8-98b6-b453df31b649 The following development artifacts have been built, and will exist for the next 30 days:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This great, this will open a lot of possibilities. Great job !
```bash | ||
$ curl -H "Content-Type: application/json" -X GET http://localhost:59358/gameserver | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we show an expected response or link to the model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. Added expected response.
pkg/gameservers/localsdk_test.go
Outdated
|
||
gs, err := l.GetGameServer(ctx, e) | ||
assert.Nil(t, err) | ||
assert.Equal(t, "local", gs.GetObjectMeta().Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can equal a full object with testity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. Changed.
@@ -38,7 +38,7 @@ metadata: | |||
rules: | |||
- apiGroups: ["stable.agones.dev"] | |||
resources: ["gameservers"] | |||
verbs: ["get", "update"] | |||
verbs: ["get", "list", "update"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need get since you have a cache sdk side with the list ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely spotted! No we do not. Removed get
.
@@ -98,8 +115,125 @@ | |||
} | |||
}, | |||
"definitions": { | |||
"GameServerObjectMeta": { | |||
"type": "object", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
…ration. Extended the gRPC SDK to include a `GameServer()` function for both Go, C++ and REST by extending the backing `sdk.proto` and implementing the functionality in the sdk sidecar. This is the start of work needed for googleforgames#277.
5647b40
to
f25990b
Compare
Build Succeeded 👏 Build Id: 4961d40b-b6a6-4038-b43b-ad2aaaefa435 The following development artifacts have been built, and will exist for the next 30 days:
|
Extended the gRPC SDK to include a
GameServer()
function for both Go, C++and REST by extending the backing
sdk.proto
and implementing the functionalityin the sdk sidecar.
This is the start of work needed for #277.