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:
|
cyriltovena
left a comment
There was a problem hiding this comment.
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.
Should we show an expected response or link to the model?
There was a problem hiding this comment.
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.
You can equal a full object with testity.
There was a problem hiding this comment.
Good call. Changed.
| - apiGroups: ["stable.agones.dev"] | ||
| resources: ["gameservers"] | ||
| verbs: ["get", "update"] | ||
| verbs: ["get", "list", "update"] |
There was a problem hiding this comment.
Do we still need get since you have a cache sdk side with the list ?
There was a problem hiding this comment.
Nicely spotted! No we do not. Removed get.
| }, | ||
| "definitions": { | ||
| "GameServerObjectMeta": { | ||
| "type": "object", |
…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 agones-dev#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.protoand implementing the functionalityin the sdk sidecar.
This is the start of work needed for #277.