Skip to content

Commit

Permalink
align gsa.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalaiselvi84 committed May 2, 2024
1 parent 9914882 commit de2242d
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions examples/gameserverallocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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.

0 comments on commit de2242d

Please sign in to comment.