placement

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "tmc-workload-placement"
)

Variables

This section is empty.

Functions

func NewController

func NewController(
	kcpClusterClient kcpclientset.ClusterInterface,
	tmcClusterClient tmcclientset.ClusterInterface,
	logicalClusterInformer corev1alpha1informers.LogicalClusterClusterInformer,
	locationInformer schedulinginformers.LocationClusterInformer,
	syncTargetInformer workloadinformers.SyncTargetClusterInformer,
	placementInformer schedulinginformers.PlacementClusterInformer,
	apiBindingInformer apisinformers.APIBindingClusterInformer,
) (*controller, error)

NewController returns a new controller starting the process of selecting synctarget for a placement.

Types

type CommitFunc

type CommitFunc = func(context.Context, *Resource, *Resource) error

type Placement

type Placement = schedulingv1alpha1.Placement

type PlacementSpec

type PlacementSpec = schedulingv1alpha1.PlacementSpec

Jump to

Keyboard shortcuts

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