Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions install/helm/agones/templates/crds/_gameserverspecschema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ properties:
title: Max capacity of the array (can be less than or equal to value of maxItems)
minimum: 0
default: 1000
maximum: 1000 # must be equal to values.maxItems
maximum: {{ .lists.maxItems }} # must be equal to values.maxItems
values:
title: set of all the items in the list
type: array
x-kubernetes-list-type: set # Requires items in the array to be unique
maxItems: 1000 # max possible size of the value array (cannot be updated)
maxItems: {{ .lists.maxItems }} # max possible size of the value array (cannot be updated)
items: # name of the item (player1, session1, room1, etc.)
type: string
default: []
Expand Down
4 changes: 2 additions & 2 deletions install/helm/agones/templates/crds/_gameserverstatus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ status:
type: integer
minimum: 0
default: 1000
maximum: 1000 # must be equal to values.maxItems
maximum: {{ .lists.maxItems }} # must be equal to values.maxItems
values:
title: Set of all the items in the list
type: array
x-kubernetes-list-type: set # Requires items in the array to be unique
maxItems: 1000 # max possible size of the value array (cannot be updated)
maxItems: {{ .lists.maxItems }} # max possible size of the value array (cannot be updated)
items: # name of the item (player1, session1, room1, etc.)
type: string
default: []
Expand Down
6 changes: 5 additions & 1 deletion install/helm/agones/templates/crds/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ spec:
- Ascending
- Descending
template:
{{- $data := dict "metadata" true "podPreserveUnknownFields" .Values.gameservers.podPreserveUnknownFields }}
{{- $data := dict
"metadata" true
"podPreserveUnknownFields" .Values.gameservers.podPreserveUnknownFields
"lists" .Values.gameservers.lists
}}
{{- include "gameserver.schema" $data | indent 17 }}
status:
description: 'FleetStatus is the status of a Fleet. More info:
Expand Down
5 changes: 4 additions & 1 deletion install/helm/agones/templates/crds/gameserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ spec:
type: date
schema:
openAPIV3Schema:
{{- $data := dict "podPreserveUnknownFields" .Values.gameservers.podPreserveUnknownFields }}
{{- $data := dict
"podPreserveUnknownFields" .Values.gameservers.podPreserveUnknownFields
"lists" .Values.gameservers.lists
}}
{{- include "gameserver.schema" $data | indent 9 }}{{- /* include the schema then status, as it's easier to align */ -}}
{{- include "gameserver.status" $data | indent 11 }}
subresources:
Expand Down
6 changes: 5 additions & 1 deletion install/helm/agones/templates/crds/gameserverset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ spec:
- Ascending
- Descending
template:
{{- $data := dict "metadata" true "podPreserveUnknownFields" .Values.gameservers.podPreserveUnknownFields }}
{{- $data := dict
"metadata" true
"podPreserveUnknownFields" .Values.gameservers.podPreserveUnknownFields
"lists" .Values.gameservers.lists
}}
{{- include "gameserver.schema" $data | indent 18 }}
status:
description: 'GameServerSetStatus is the status of a GameServerSet. More info:
Expand Down
14 changes: 13 additions & 1 deletion install/helm/agones/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1559,13 +1559,25 @@
},
"podPreserveUnknownFields": {
"type": "boolean"
},
"lists": {
"type": "object",
"properties": {
"maxItems": {
"type": "integer"
}
},
"required": [
"maxItems"
]
}
},
"required": [
"namespaces",
"minPort",
"maxPort",
"podPreserveUnknownFields"
"podPreserveUnknownFields",
"lists"
]
},
"helm": {
Expand Down
2 changes: 2 additions & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ gameservers:
# requires feature gate PortRanges to be enabled
# game: [9000, 10000]
podPreserveUnknownFields: false
lists:
maxItems: 1000

helm:
installTests: false
18 changes: 9 additions & 9 deletions install/yaml/install.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
---
# Source: agones/templates/priority-class.yaml
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: agones-system
value: 1000000
globalDefault: false
description: "This priority class should be used for Agones service pods only."
---
# Source: agones/templates/controller.yaml
apiVersion: policy/v1
kind: PodDisruptionBudget
Expand Down Expand Up @@ -19175,15 +19184,6 @@ webhooks:
operations:
- CREATE
---
# Source: agones/templates/priority-class.yaml
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: agones-system
value: 1000000
globalDefault: false
description: "This priority class should be used for Agones service pods only."
---
# Source: agones/templates/extensions.yaml
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
Expand Down
1 change: 1 addition & 0 deletions site/content/en/docs/Installation/Install Agones/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ The following tables lists the configurable parameters of the Agones chart and t
| `gameservers.maxPort` | Maximum port to use for dynamic port allocation | `8000` |
| `gameservers.additionalPortRanges` | Port ranges from which to do named dynamic port allocation. Example: <br /> additionalPortRanges: <br />&nbsp;&nbsp;game: [9000, 10000] | `{}` |
| `gameservers.podPreserveUnknownFields` | Disable [field pruning][pruning] and schema validation on the Pod template for a [GameServer][gameserver] definition | `false` |
| `gameservers.lists.maxItems` | The maximum number of items that can be specified for a list. | `1000` |

### Helm Installation

Expand Down