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(apiServer *apiserver.APIServer, health healthcheck.Handler, counter *gameservers.PerNodeCounter, topNGameServerCnt int, kubeClient kubernetes.Interface, kubeInformerFactory informers.SharedInformerFactory, agonesClient versioned.Interface, agonesInformerFactory externalversions.SharedInformerFactory, ) *Controller
NewController returns a controller for a GameServerAllocation
func (*Controller) Run ¶
func (c *Controller) Run(_ int, stop <-chan struct{}) error
Run runs this controller. Will block until stop is closed. Ignores threadiness, as we only needs 1 worker for cache sync
Click to show internal directories.
Click to hide internal directories.