From 8b783a489ec73eab4933a11f5bbe69d2a6cb2dcd Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Thu, 31 Oct 2019 14:02:21 -0700 Subject: [PATCH] Add Spec and Health data to default local sdk GameServer Noticed when building the Unity `SDK.GameServer()`, there was no data in the Spec field that come with the GameServer that comes through the SDK. This gives it some default values, making it easier to build SDKs against. --- pkg/sdkserver/localsdk.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/sdkserver/localsdk.go b/pkg/sdkserver/localsdk.go index afd1f2d3db..53ca49f732 100644 --- a/pkg/sdkserver/localsdk.go +++ b/pkg/sdkserver/localsdk.go @@ -46,6 +46,14 @@ var ( Labels: map[string]string{"islocal": "true"}, Annotations: map[string]string{"annotation": "true"}, }, + Spec: &sdk.GameServer_Spec{ + Health: &sdk.GameServer_Spec_Health{ + Disabled: false, + PeriodSeconds: 3, + FailureThreshold: 5, + InitialDelaySeconds: 10, + }, + }, Status: &sdk.GameServer_Status{ State: "Ready", Address: "127.0.0.1",