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

Add ReserveUntil to GameServer.Status #865

Merged
merged 1 commit into from Jul 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions pkg/apis/stable/v1alpha1/gameserver.go
Expand Up @@ -174,10 +174,11 @@ type GameServerPort struct {
// GameServerStatus is the status for a GameServer resource
type GameServerStatus struct {
// GameServerState is the current state of a GameServer, e.g. Creating, Starting, Ready, etc
State GameServerState `json:"state"`
Ports []GameServerStatusPort `json:"ports"`
Address string `json:"address"`
NodeName string `json:"nodeName"`
State GameServerState `json:"state"`
Ports []GameServerStatusPort `json:"ports"`
Address string `json:"address"`
NodeName string `json:"nodeName"`
ReservedUntil *metav1.Time `json:"reservedUntil"`
}

// GameServerStatusPort shows the port that was allocated to a
Expand Down
8 changes: 8 additions & 0 deletions pkg/apis/stable/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions site/content/en/docs/Reference/agones_crd_api_reference.html
Expand Up @@ -4242,6 +4242,18 @@ <h3 id="GameServerStatus">GameServerStatus
<td>
</td>
</tr>
<tr>
<td>
<code>reservedUntil</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#time-v1-meta">
Kubernetes meta/v1.Time
</a>
</em>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<h3 id="GameServerStatusPort">GameServerStatusPort
Expand Down