Documentation ¶
Overview ¶
Package gameserverallocations handles management of allocating Ready GameServers via selectors
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoGameServerReady is returned when there are no Ready GameServers // available ErrNoGameServerReady = errors.New("Could not find a Ready GameServer") // ErrConflictInGameServerSelection is returned when the candidate gameserver already allocated ErrConflictInGameServerSelection = errors.New("The Gameserver was already allocated") )
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a the GameServerAllocation controller
func NewController ¶
func NewController(wh *webhooks.WebHook, health healthcheck.Handler, counter *gameservers.PerNodeCounter, topNGameServerCnt int, kubeClient kubernetes.Interface, extClient extclientset.Interface, agonesClient versioned.Interface, agonesInformerFactory externalversions.SharedInformerFactory, ) *Controller
NewController returns a controller for a GameServerAllocation
func (*Controller) Run ¶
func (c *Controller) Run(workers int, stop <-chan struct{}) error
Run runs this controller. Will block until stop is closed. Runs threadiness number workers to process the rate limited queue Probably only needs 1 worker, as its just deleting unallocated GameServerAllocations
Click to show internal directories.
Click to hide internal directories.