gameserverset

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScaleReason          = "Scale"
	CreatePPMReason      = "CreatePpm"
	UpdatePPMReason      = "UpdatePpm"
	CreateWorkloadReason = "CreateWorkload"
	UpdateWorkloadReason = "UpdateWorkload"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

func SyncGameServer added in v0.7.0

func SyncGameServer(gss *gameKruiseV1alpha1.GameServerSet, c client.Client, newManageIds, oldManageIds []int) error

Types

type Control

type Control interface {
	GameServerScale() error
	UpdateWorkload() error
	SyncStatus() error
	IsNeedToScale() bool
	IsNeedToUpdateWorkload() bool
	SyncPodProbeMarker() error
	GetReplicasAfterKilling() *int32
}

type GameServerSetManager

type GameServerSetManager struct {
	// contains filtered or unexported fields
}

func (*GameServerSetManager) GameServerScale

func (manager *GameServerSetManager) GameServerScale() error

func (*GameServerSetManager) GetReplicasAfterKilling added in v0.5.0

func (manager *GameServerSetManager) GetReplicasAfterKilling() *int32

func (*GameServerSetManager) IsNeedToScale

func (manager *GameServerSetManager) IsNeedToScale() bool

func (*GameServerSetManager) IsNeedToUpdateWorkload

func (manager *GameServerSetManager) IsNeedToUpdateWorkload() bool

func (*GameServerSetManager) SyncPodProbeMarker

func (manager *GameServerSetManager) SyncPodProbeMarker() error

func (*GameServerSetManager) SyncStatus

func (manager *GameServerSetManager) SyncStatus() error

func (*GameServerSetManager) UpdateWorkload

func (manager *GameServerSetManager) UpdateWorkload() error

type GameServerSetReconciler

type GameServerSetReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

GameServerSetReconciler reconciles a GameServerSet object

func (*GameServerSetReconciler) Reconcile

func (r *GameServerSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the GameServerSet object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.1/pkg/reconcile

func (*GameServerSetReconciler) SetupWithManager

func (r *GameServerSetReconciler) SetupWithManager(mgr ctrl.Manager) (c controller.Controller, err error)

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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