agones.dev/agones@v1.53.0/install/helm/agones/templates/crds/_gameserverstatus.yaml (about) 1 # Copyright 2020 Google LLC All Rights Reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 {{/* schema for a gameserver status */}} 16 {{- define "gameserver.status" }} 17 status: 18 description: 'GameServerStatus is the status for a GameServer resource. More info: 19 https://agones.dev/site/docs/reference/agones_crd_api_reference/#agones.dev/v1.GameServer' 20 type: object 21 title: The status values for the GameServer 22 properties: 23 state: 24 type: string 25 enum: 26 - PortAllocation 27 - Creating 28 - Starting 29 - Scheduled 30 - RequestReady 31 - Ready 32 - Shutdown 33 - Error 34 - Unhealthy 35 - Reserved 36 - Allocated 37 ports: 38 type: array 39 nullable: true 40 items: 41 type: object 42 properties: 43 name: 44 type: string 45 port: 46 type: integer 47 address: 48 type: string 49 addresses: 50 type: array 51 title: Array of addresses at which the GameServer can be reached; copy of Node.Status.addresses 52 nullable: true 53 items: 54 type: object 55 properties: 56 address: 57 type: string 58 type: 59 type: string 60 nodeName: 61 type: string 62 reservedUntil: 63 type: string 64 nullable: true 65 format: date-time 66 players: 67 type: object 68 nullable: true 69 properties: 70 count: 71 type: integer 72 capacity: 73 type: integer 74 ids: 75 type: array 76 nullable: true 77 items: 78 type: string 79 counters: 80 type: object 81 title: Map of player, room, session, etc. counters 82 nullable: true 83 maxProperties: 1000 84 additionalProperties: 85 type: object 86 properties: 87 count: 88 title: The current count 89 type: integer 90 default: 0 91 minimum: 0 92 capacity: 93 type: integer 94 default: 1000 95 minimum: 0 96 lists: 97 type: object 98 title: Map of player, room, session, etc. lists 99 nullable: true 100 maxProperties: 1000 101 additionalProperties: 102 type: object 103 properties: 104 capacity: 105 title: Max capacity of the array (can be less than or equal to value of values.maxItems) 106 type: integer 107 minimum: 0 108 default: 1000 109 maximum: {{ .lists.maxItems }} # must be equal to values.maxItems 110 values: 111 title: Set of all the items in the list 112 type: array 113 x-kubernetes-list-type: set # Requires items in the array to be unique 114 maxItems: {{ .lists.maxItems }} # max possible size of the value array (cannot be updated) 115 items: # name of the item (player1, session1, room1, etc.) 116 type: string 117 default: [] 118 eviction: 119 type: object 120 properties: 121 safe: 122 type: string 123 enum: 124 - Always 125 - OnUpgrade 126 - Never 127 immutableReplicas: 128 type: integer 129 title: Immutable count of Pods to a GameServer. Always 1. (Implementation detail of implementing the Scale subresource.) 130 default: 1 131 minimum: 1 132 maximum: 1 133 {{- end}}