gameServer

abstract suspend fun gameServer(): Sdk.GameServer(source)

Gets a new, immutable Snapshot of the GameServer resource of this instance. The data includes, among meta information, the current state, the allocation/assignment and the configuration as present in the Kubernetes resource. This snapshot cannot be changed, and modifications to the state have to happen through the other interfaces of the Agones SDK. The returned value is guaranteed to match the value set within the SDK, even if the value was not yet synchronized with the Kubernetes resource.

Return

The GameServer resource that represents this instance within Agones and within Kubernetes.

See also