From de2242db454761d51e7075f384c9c5f567141a84 Mon Sep 17 00:00:00 2001 From: Kalaiselvi Murugesan Date: Thu, 2 May 2024 19:41:09 +0000 Subject: [PATCH] align gsa.yaml --- examples/gameserverallocation.yaml | 48 +++++++++++++++++------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/examples/gameserverallocation.yaml b/examples/gameserverallocation.yaml index 5d3613c005..c7e6ba703a 100644 --- a/examples/gameserverallocation.yaml +++ b/examples/gameserverallocation.yaml @@ -50,26 +50,19 @@ spec: # via Allocation. Defaults to "Ready". The only other option is "Allocated", which can be used in conjunction with # label/annotation/player selectors to retrieve an already Allocated GameServer. gameServerState: Ready - # [Stage:Beta] - # [FeatureFlag:CountsAndLists] - counters: # selector for counter current values of a GameServer count - rooms: - minCount: 1 # minimum value. Defaults to 0. - maxCount: 5 # maximum value. Defaults to max(int64) - minAvailable: 1 # minimum available (current capacity - current count). Defaults to 0. - maxAvailable: 10 # maximum available (current capacity - current count) Defaults to max(int64) - action: Increment # Either "Increment" or "Decrement" the Counter’s Count. - amount: 1 # Amount is the amount to increment or decrement the Count. Must be a positive integer. - capacity: 5 # Amount to update the maximum capacity of the Counter to this number. Min 0, Max int64. - lists: - players: - containsValue: "x6k8z" # only match GameServers who has this value in the list. Defaults to "", which is all. - minAvailable: 1 # minimum available (current capacity - current count). Defaults to 0. - maxAvailable: 10 # maximum available (current capacity - current count) Defaults to 0, which translates to max(int64) - addValues: # appends values to a List’s Values array. Any duplicate values will be ignored - - x7un - - 8inz - capacity: 40 # Updates the maximum capacity of the Counter to this number. Min 0, Max 1000.dates the maximum capacity of the Counter to this number. Min 0, Max 1000. + # [Stage:Beta] + # [FeatureFlag:CountsAndLists] + counters: # selector for counter current values of a GameServer count + rooms: + minCount: 1 # minimum value. Defaults to 0. + maxCount: 5 # maximum value. Defaults to max(int64) + minAvailable: 1 # minimum available (current capacity - current count). Defaults to 0. + maxAvailable: 10 # maximum available (current capacity - current count) Defaults to max(int64) + lists: + players: + containsValue: "x6k8z" # only match GameServers who has this value in the list. Defaults to "", which is all. + minAvailable: 1 # minimum available (current capacity - current count). Defaults to 0. + maxAvailable: 10 # maximum available (current capacity - current count) Defaults to 0, which translates to max(int64) # # [Stage:Alpha] # [FeatureFlag:PlayerAllocationFilter] @@ -109,3 +102,18 @@ spec: - type: Counter # Whether a Counter or a List. key: rooms # The name of the Counter or List. order: Ascending # "Ascending" lists smaller available capacity first. + # [Stage:Beta] + # [FeatureFlag:CountsAndLists] + # Counter actions to perform during allocation. Optional. + counters: + rooms: + action: Increment # Either "Increment" or "Decrement" the Counter’s Count. + amount: 1 # Amount is the amount to increment or decrement the Count. Must be a positive integer. + capacity: 5 # Amount to update the maximum capacity of the Counter to this number. Min 0, Max int64. + # List actions to perform during allocation. Optional. + lists: + players: + addValues: # appends values to a List’s Values array. Any duplicate values will be ignored + - x7un + - 8inz + capacity: 40 # Updates the maximum capacity of the Counter to this number. Min 0, Max 1000.