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 Initialize ¶ added in v1.29.0
func Initialize(ctx context.Context, kc *kubernetes.Clientset) (err error)
Initialize initializes the cloud product from the viper flag. Caller must use BindFlags and BindEnv prior. If this function returns an error, caller should exit, as calling ControllerHooks() after a bad initialization will return a nil interface
Types ¶
type ControllerHooksInterface ¶ added in v1.29.0
type ControllerHooksInterface interface { // 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(int32, int32, informers.SharedInformerFactory, externalversions.SharedInformerFactory) portallocator.Interface }
ControllerHooksInterface provides a generic interface that abstracts cloud product specific functionality for pkg/controller packages.
func ControllerHooks ¶ added in v1.29.0
func ControllerHooks() ControllerHooksInterface
ControllerHooks returns the global cloud product controller hooks. If the global singleton is not set, we initialize the current cloud product to the "generic" product - this should only happen in unit tests.
Directories ¶
Path | Synopsis |
---|---|
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 |