Skip to content

Commit

Permalink
Refactor gameserverallocation to its components (#1015)
Browse files Browse the repository at this point in the history
gameserverallocation will serve as an extension API that uses the common library for allocation. agones-allocator service will reference the same allocation library that is refactored out.
  • Loading branch information
pooneh-m authored Aug 28, 2019
1 parent 9228d20 commit 7b5e618
Show file tree
Hide file tree
Showing 7 changed files with 1,121 additions and 887 deletions.
6 changes: 1 addition & 5 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ const (
logSizeLimitMBFlag = "log-size-limit-mb"
kubeconfigFlag = "kubeconfig"
defaultResync = 30 * time.Second
// topNGSForAllocation is used by the GameServerAllocation controller
// to reduce the contention while allocating gameservers.
topNGSForAllocation = 100
)

var (
Expand Down Expand Up @@ -193,8 +190,7 @@ func main() {
gsSetController := gameserversets.NewController(wh, health, gsCounter,
kubeClient, extClient, agonesClient, agonesInformerFactory)
fleetController := fleets.NewController(wh, health, kubeClient, extClient, agonesClient, agonesInformerFactory)
gasController := gameserverallocations.NewController(api, health, gsCounter, topNGSForAllocation,
kubeClient, kubeInformerFactory, agonesClient, agonesInformerFactory)
gasController := gameserverallocations.NewController(api, health, gsCounter, kubeClient, kubeInformerFactory, agonesClient, agonesInformerFactory)
fasController := fleetautoscalers.NewController(wh, health,
kubeClient, extClient, agonesClient, agonesInformerFactory)

Expand Down
Loading

0 comments on commit 7b5e618

Please sign in to comment.