v1.38.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 35 Imported by: 6



Package gameserversets handles management of the GameServerSet Custom Resource Definition



This section is empty.


View Source
var (
	// ErrNoGameServerSetOwner is returned when a GameServerSet can't be found as an owner
	// for a GameServer
	ErrNoGameServerSetOwner = errors.New("No GameServerSet owner for this GameServer")


func ListGameServersByGameServerSetOwner

func ListGameServersByGameServerSetOwner(gameServerLister listerv1.GameServerLister,
	gsSet *agonesv1.GameServerSet) ([]*agonesv1.GameServer, error)

ListGameServersByGameServerSetOwner lists the GameServers for a given GameServerSet

func SortGameServersByStrategy added in v1.34.0

func SortGameServersByStrategy(strategy apis.SchedulingStrategy, list []*agonesv1.GameServer, counts map[string]gameservers.NodeCount, priorities []agonesv1.Priority) []*agonesv1.GameServer

SortGameServersByStrategy will sort by least full nodes when Packed, and newest first when Distributed


type AllocationOverflowController added in v1.32.0

type AllocationOverflowController struct {
	// contains filtered or unexported fields

AllocationOverflowController watches `GameServerSets`, and those with configured AllocationOverflow settings, will the relevant labels and annotations to `GameServers` attached to the given `GameServerSet`

func NewAllocatorOverflowController added in v1.32.0

func NewAllocatorOverflowController(
	health healthcheck.Handler,
	counter *gameservers.PerNodeCounter,
	agonesClient versioned.Interface,
	agonesInformerFactory externalversions.SharedInformerFactory) *AllocationOverflowController

NewAllocatorOverflowController returns a new AllocationOverflowController

func (*AllocationOverflowController) Run added in v1.32.0

Run this controller. Will block until stop is closed.

type Controller

type Controller struct {
	// contains filtered or unexported fields

Controller is a GameServerSet controller

func NewController

func NewController(
	health healthcheck.Handler,
	counter *gameservers.PerNodeCounter,
	kubeClient kubernetes.Interface,
	extClient extclientset.Interface,
	agonesClient versioned.Interface,
	agonesInformerFactory externalversions.SharedInformerFactory) *Controller

NewController returns a new gameserverset crd controller

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int) error

Run the GameServerSet controller. Will block until stop is closed. Runs threadiness number workers to process the rate limited queue

type Extensions added in v1.29.0

type Extensions struct {
	// contains filtered or unexported fields

Extensions struct contains what is needed to bind webhook handlers

func NewExtensions added in v1.29.0

func NewExtensions(apiHooks agonesv1.APIHooks, wh *webhooks.WebHook) *Extensions

NewExtensions binds the handlers to the webhook outside the initialization of the controller initializes a new logger for extensions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL