cloudproduct

package
v1.43.0 Latest Latest
Warning

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

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

Documentation

Overview

Package cloudproduct provides an abstraction layer to product specific functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindEnv added in v1.29.0

func BindEnv() error

BindEnv binds the CLOUD_PRODUCT env variable.

func BindFlags added in v1.29.0

func BindFlags()

BindFlags binds the --cloud-product flag.

Types

type ControllerHooksInterface added in v1.29.0

type ControllerHooksInterface interface {
	agonesv1.APIHooks

	// SyncPodPortsToGameServer runs after a Pod has been assigned to a Node and before we sync
	// Pod host ports to the GameServer status.
	SyncPodPortsToGameServer(*agonesv1.GameServer, *corev1.Pod) error

	// NewPortAllocator creates a PortAllocator. See gameservers.NewPortAllocator for parameters.
	NewPortAllocator(map[string]portallocator.PortRange, informers.SharedInformerFactory, externalversions.SharedInformerFactory) portallocator.Interface

	// WaitOnFreePorts
	WaitOnFreePorts() bool
}

ControllerHooksInterface provides a generic interface that abstracts cloud product specific functionality for pkg/controller packages.

func NewFromFlag added in v1.30.0

NewFromFlag instantiates a new CloudProduct interface from the flags in BindFlags/BindEnv.

Directories

Path Synopsis
Package eviction implements a generic SetEviction interface for cloud products
Package eviction implements a generic SetEviction interface for cloud products
Package generic provides the generic cloud provider.
Package generic provides the generic cloud provider.
Package gke provides the GKE cloud product interfaces for GKE Standard and Autopilot
Package gke provides the GKE cloud product interfaces for GKE Standard and Autopilot

Jump to

Keyboard shortcuts

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